Skip to content

Commit

Permalink
HBASE-25546 PerfTestCompactionPolicies is failing because of NPE (add…
Browse files Browse the repository at this point in the history
…endum) (#2926)

Added HBaseClassTestRule for PerfTestCompactionPolicies
  • Loading branch information
robin7roy committed Feb 4, 2021
1 parent d6d67d1 commit 1e8ff16
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.List;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseClassTestRule;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.client.RegionInfoBuilder;
import org.apache.hadoop.hbase.regionserver.HStore;
Expand All @@ -36,6 +37,7 @@
import org.apache.hadoop.hbase.testclassification.MediumTests;
import org.apache.hadoop.hbase.testclassification.RegionServerTests;
import org.apache.hadoop.hbase.util.ReflectionUtils;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
Expand All @@ -45,6 +47,10 @@
@RunWith(Parameterized.class)
public class PerfTestCompactionPolicies extends MockStoreFileGenerator {

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

private final RatioBasedCompactionPolicy cp;
private final StoreFileListGenerator generator;
private final HStore store;
Expand Down

0 comments on commit 1e8ff16

Please sign in to comment.