Skip to content

Commit

Permalink
fix ut and style
Browse files Browse the repository at this point in the history
  • Loading branch information
niuyulin committed Jul 27, 2021
1 parent 2e3f6df commit 204a058
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.apache.hadoop.conf.Configuration;
Expand All @@ -42,7 +41,6 @@
import org.apache.hadoop.hbase.shaded.protobuf.generated.CompactionProtos;
import org.apache.hadoop.hbase.shaded.protobuf.generated.CompactionProtos.CompactResponse;
import org.apache.hadoop.hbase.shaded.protobuf.generated.CompactionProtos.CompactionService;
import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos;

@InterfaceAudience.Private
public class CSRpcServices extends AbstractRpcServices
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
* limitations under the License.
*/
package org.apache.hadoop.hbase.compactionserver;

import java.net.InetSocketAddress;

import org.apache.hadoop.hbase.HBaseClassTestRule;
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.StartMiniClusterOption;
import org.apache.hadoop.hbase.client.TableDescriptor;
import org.apache.hadoop.hbase.client.TableDescriptorBuilder;
Expand All @@ -26,17 +31,19 @@
import org.apache.hadoop.hbase.util.Bytes;
import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.apache.hadoop.hbase.HBaseTestingUtility;

import java.net.InetSocketAddress;

@Category({ CompactionServerTests.class, MediumTests.class })
public class TestRegionFavoredNodesWhenCompactOffload extends TestRegionFavoredNodes {
private static HCompactionServer COMPACTION_SERVER;
private static final int FLUSHES = 10;

@ClassRule
public static final HBaseClassTestRule CLASS_RULE =
HBaseClassTestRule.forClass(TestRegionFavoredNodesWhenCompactOffload.class);

@BeforeClass
public static void setUpBeforeClass() throws Exception {
try {
Expand Down

0 comments on commit 204a058

Please sign in to comment.