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
Results for branch branch-1.4
build #433 on builds.a.o: -1 overall
details (if available):
-1 general checks
– For more information see general report
-1 jdk7 checks
– For more information see jdk7 report
-1 jdk8 hadoop2 checks
– For more information see jdk8 (hadoop2) report
+1 source release artifact
– See build output for details.