Details
Description
The following can be observed in master branch:
java.lang.NullPointerException
at org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134)
The NPE comes from the following in TestEndToEndSplitTransaction :
compactAndBlockUntilDone(TEST_UTIL.getAdmin(), TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), daughterA.getRegionName());
Initial check of the code shows that TestEndToEndSplitTransaction uses TEST_UTIL instance which is created within TestEndToEndSplitTransaction. However, TestTableResource creates its own instance of HBaseTestingUtility.
Meaning TEST_UTIL.getMiniHBaseCluster() would return null, since the instance created by TestEndToEndSplitTransaction has hbaseCluster as null.
Attachments
Attachments
Issue Links
- is broken by
-
HBASE-20940 HStore.cansplit should not allow split to happen if it has references
- Resolved
-
HBASE-17080 rest.TestTableResource fails in master branch
- Resolved
- is duplicated by
-
HBASE-21086 NPE in TestTableResource
- Resolved
-
HBASE-21099 NPE in TestTableResource.setUpBeforeClass (TestTableResource.java:134)
- Resolved