[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16590131#comment-16590131 ] Hudson commented on HBASE-21076: Results for branch branch-1.4 [build #433 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.4/433/]: (x) *{color:red}-1 overall{color}* details (if available): (x) {color:red}-1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.4/433//General_Nightly_Build_Report/] (x) {color:red}-1 jdk7 checks{color} -- For more information [see jdk7 report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.4/433//JDK7_Nightly_Build_Report/] (x) {color:red}-1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.4/433//JDK8_Nightly_Build_Report_(Hadoop2)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.1.1, 2.0.2, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Fix For: 3.0.0, 1.5.0, 1.3.3, 2.2.0, 1.4.8, 1.2.7, 2.1.1, 2.0.2 > > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16590119#comment-16590119 ] Hudson commented on HBASE-21076: Results for branch branch-2.0 [build #717 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/717/]: (x) *{color:red}-1 overall{color}* details (if available): (/) {color:green}+1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/717//General_Nightly_Build_Report/] (/) {color:green}+1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/717//JDK8_Nightly_Build_Report_(Hadoop2)/] (x) {color:red}-1 jdk8 hadoop3 checks{color} -- For more information [see jdk8 (hadoop3) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/717//JDK8_Nightly_Build_Report_(Hadoop3)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.1.1, 2.0.2, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Fix For: 3.0.0, 1.5.0, 1.3.3, 2.2.0, 1.4.8, 1.2.7, 2.1.1, 2.0.2 > > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16590101#comment-16590101 ] Hudson commented on HBASE-21076: Results for branch branch-1 [build #428 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-1/428/]: (x) *{color:red}-1 overall{color}* details (if available): (x) {color:red}-1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1/428//General_Nightly_Build_Report/] (x) {color:red}-1 jdk7 checks{color} -- For more information [see jdk7 report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1/428//JDK7_Nightly_Build_Report/] (x) {color:red}-1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1/428//JDK8_Nightly_Build_Report_(Hadoop2)/] (x) {color:red}-1 source release artifact{color} -- See build output for details. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.1.1, 2.0.2, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Fix For: 3.0.0, 1.5.0, 1.3.3, 2.2.0, 1.4.8, 1.2.7, 2.1.1, 2.0.2 > > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16589986#comment-16589986 ] Hudson commented on HBASE-21076: Results for branch branch-1.3 [build #439 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.3/439/]: (x) *{color:red}-1 overall{color}* details (if available): (/) {color:green}+1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.3/439//General_Nightly_Build_Report/] (/) {color:green}+1 jdk7 checks{color} -- For more information [see jdk7 report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.3/439//JDK7_Nightly_Build_Report/] (x) {color:red}-1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.3/439//JDK8_Nightly_Build_Report_(Hadoop2)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.1.1, 2.0.2, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Fix For: 3.0.0, 1.5.0, 1.3.3, 2.2.0, 1.4.8, 1.2.7, 2.1.1, 2.0.2 > > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16589917#comment-16589917 ] Hudson commented on HBASE-21076: Results for branch branch-1.2 [build #443 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.2/443/]: (x) *{color:red}-1 overall{color}* details (if available): (/) {color:green}+1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.2/443//General_Nightly_Build_Report/] (x) {color:red}-1 jdk7 checks{color} -- For more information [see jdk7 report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.2/443//JDK7_Nightly_Build_Report/] (x) {color:red}-1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.2/443//JDK8_Nightly_Build_Report_(Hadoop2)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.1.1, 2.0.2, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Fix For: 3.0.0, 1.5.0, 1.3.3, 2.2.0, 1.4.8, 1.2.7, 2.1.1, 2.0.2 > > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16589708#comment-16589708 ] Hudson commented on HBASE-21076: Results for branch branch-2.1 [build #227 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/227/]: (x) *{color:red}-1 overall{color}* details (if available): (/) {color:green}+1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/227//General_Nightly_Build_Report/] (x) {color:red}-1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/227//JDK8_Nightly_Build_Report_(Hadoop2)/] (x) {color:red}-1 jdk8 hadoop3 checks{color} -- For more information [see jdk8 (hadoop3) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/227//JDK8_Nightly_Build_Report_(Hadoop3)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. (/) {color:green}+1 client integration test{color} > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.1.1, 2.0.2, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Fix For: 3.0.0, 1.5.0, 1.3.3, 2.2.0, 1.4.8, 1.2.7, 2.1.1, 2.0.2 > > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16589608#comment-16589608 ] Hudson commented on HBASE-21076: SUCCESS: Integrated in Jenkins build HBase-1.2-IT #1152 (See [https://builds.apache.org/job/HBase-1.2-IT/1152/]) HBASE-21076 refactor TestTableResource to ask for a multi-region table (busbey: rev 524f7fbe572897f2a318eaad4865d83a49932f1a) * (edit) hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/TestTableResource.java > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Fix For: 3.0.0, 1.5.0, 1.2.7, 1.3.3, 2.0.2, 2.2.0, 2.1.1, 1.4.8 > > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16589602#comment-16589602 ] Hudson commented on HBASE-21076: SUCCESS: Integrated in Jenkins build HBase-1.3-IT #461 (See [https://builds.apache.org/job/HBase-1.3-IT/461/]) HBASE-21076 refactor TestTableResource to ask for a multi-region table (busbey: rev 05460c9370c175729c10b1f0ad6d91b15e5660ac) * (edit) hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/TestTableResource.java > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Fix For: 3.0.0, 1.5.0, 1.2.7, 1.3.3, 2.0.2, 2.2.0, 2.1.1, 1.4.8 > > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16589570#comment-16589570 ] Sean Busbey commented on HBASE-21076: - pushed to all branches, since even on those that didn't already have the cross-test dependency this removed a busy wait from the test. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Fix For: 3.0.0, 1.5.0, 1.2.7, 1.3.3, 2.0.2, 2.2.0, 2.1.1, 1.4.8 > > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16589482#comment-16589482 ] Duo Zhang commented on HBASE-21076: --- +1. The flaky dashboard is good. All green after we commit the patch to master. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16589481#comment-16589481 ] Sean Busbey commented on HBASE-21076: - I was waiting for Duo's view since it's been on master. has passed the last 25 runs. will push when i get back to a computer. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16589472#comment-16589472 ] Andrew Purtell commented on HBASE-21076: Looks ready to go? Let's commit. Just ran into this on the branch-2s, still an issue there, though not on master, at least for me. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16588837#comment-16588837 ] Hudson commented on HBASE-21076: Results for branch master [build #448 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/master/448/]: (x) *{color:red}-1 overall{color}* details (if available): (/) {color:green}+1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/master/448//General_Nightly_Build_Report/] (x) {color:red}-1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/master/448//JDK8_Nightly_Build_Report_(Hadoop2)/] (x) {color:red}-1 jdk8 hadoop3 checks{color} -- For more information [see jdk8 (hadoop3) report|https://builds.apache.org/job/HBase%20Nightly/job/master/448//JDK8_Nightly_Build_Report_(Hadoop3)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. (/) {color:green}+1 client integration test{color} > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16587817#comment-16587817 ] Ted Yu commented on HBASE-21076: Patch for master looks good me. Thanks for working on this, Sean. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16587809#comment-16587809 ] Sean Busbey commented on HBASE-21076: - [~Apache9] last 4 runs came back green: https://builds.apache.org/view/H-L/view/HBase/job/HBase-Find-Flaky-Tests/job/master/8/artifact/dashboard.html#job_2 let me know when there are enough green runs for you to be comfortable with me backporting. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16587505#comment-16587505 ] Hadoop QA commented on HBASE-21076: --- | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 0s{color} | {color:blue} Docker mode activated. {color} | | {color:red}-1{color} | {color:red} patch {color} | {color:red} 0m 6s{color} | {color:red} HBASE-21076 does not apply to master. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/0.7.0/precommit-patchnames for help. {color} | \\ \\ || Subsystem || Report/Notes || | JIRA Issue | HBASE-21076 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12936451/HBASE-21076.1.patch | | Console output | https://builds.apache.org/job/PreCommit-HBASE-Build/14116/console | | Powered by | Apache Yetus 0.7.0 http://yetus.apache.org | This message was automatically generated. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16587500#comment-16587500 ] Sean Busbey commented on HBASE-21076: - - v1 what I pushed to master - fixes checkstyle problems precommit found - fixes comment that said "three" instead of "four" regions were requested. done as v0 + addendum because in my "update, test, push" cycle I forgot to commit the staged changes before pushing :( > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Attachments: HBASE-21076.0.patch, HBASE-21076.1.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16587480#comment-16587480 ] Sean Busbey commented on HBASE-21076: - sweet. will push to master shortly and then can backport once the flaky job has a go at running it a few times. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Attachments: HBASE-21076.0.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16587465#comment-16587465 ] Duo Zhang commented on HBASE-21076: --- Tried locally, it works for me. +1 after you fixing the checkstyle issues. Let's push it to master to see if the flaky dashboard also says OK. Thanks. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Attachments: HBASE-21076.0.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16587457#comment-16587457 ] Sean Busbey commented on HBASE-21076: - both of those checkstyle warnings are easy fixes. Can do on commit or will post a new patch if anyone wants some other change. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Attachments: HBASE-21076.0.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16587379#comment-16587379 ] Hadoop QA commented on HBASE-21076: --- | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 28s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} hbaseanti {color} | {color:green} 0m 0s{color} | {color:green} Patch does not have any anti-patterns. {color} | | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | | {color:green}+1{color} | {color:green} test4tests {color} | {color:green} 0m 0s{color} | {color:green} The patch appears to include 1 new or modified test files. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 6m 39s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 15s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 44s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} shadedjars {color} | {color:green} 6m 50s{color} | {color:green} branch has no errors when building our shaded downstream artifacts. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 1m 34s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 53s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 6m 53s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 1m 19s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 1m 19s{color} | {color:green} the patch passed {color} | | {color:red}-1{color} | {color:red} checkstyle {color} | {color:red} 0m 46s{color} | {color:red} hbase-rest: The patch generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0) {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} shadedjars {color} | {color:green} 6m 57s{color} | {color:green} patch has no errors when building our shaded downstream artifacts. {color} | | {color:green}+1{color} | {color:green} hadoopcheck {color} | {color:green} 12m 59s{color} | {color:green} Patch does not cause any errors with Hadoop 2.7.4 or 3.0.0. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 0m 49s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 18s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} unit {color} | {color:green} 2m 49s{color} | {color:green} hbase-rest in the patch passed. {color} | | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 9s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 52m 19s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Docker | Client=17.05.0-ce Server=17.05.0-ce Image:yetus/hbase:b002b0b | | JIRA Issue | HBASE-21076 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12936431/HBASE-21076.0.patch | | Optional Tests | asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile | | uname | Linux c145ce8bdffe 3.13.0-143-generic #192-Ubuntu SMP Tue Feb 27 10:45:36 UTC 2018 x86_64 GNU/Linux | | Build tool | maven | | Personality | /home/jenkins/jenkins-slave/workspace/PreCommit-HBASE-Build/component/dev-support/hbase-personality.sh | | git revision | master / bb3494134e | | maven | version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z) | | Default Java | 1.8.0_181 | | findbugs | v3.1.0-RC3 | | checkstyle | https://builds.apache.org/job/PreCommit-HBASE-Build/14110/artifact/patchprocess/diff-checkstyle-hbase-rest.txt | | Test Results | https://builds.apache.org/job/PreCommit-HBASE-Build/14110/testReport/ | | Max. process+thread count | 2206 (vs. ulimit of 1) | | modules | C: hbase-rest U: hbase-rest | | Console output |
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16587355#comment-16587355 ] Sean Busbey commented on HBASE-21076: - note that due to HBASE-19265, precommit isn't going to run TestTableResource (it's in the untrusted list because it fails 100% of the time before this patch). reviewers should manually run the test locally to confirm it works. Doing this while doing a minimum of other things: {{mvn -Dtest=TestTableResource -pl hbase-rest -am package}} > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > Attachments: HBASE-21076.0.patch > > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-21076) TestTableResource fails with NPE
[ https://issues.apache.org/jira/browse/HBASE-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16586336#comment-16586336 ] Sean Busbey commented on HBASE-21076: - showed up in nightly for all branches that got HBASE-20940 right after it landed, which added these calls to TEST_UTIL. we shouldn't have TestTableResource reaching into a test class in a different module like this. > TestTableResource fails with NPE > > > Key: HBASE-21076 > URL: https://issues.apache.org/jira/browse/HBASE-21076 > Project: HBase > Issue Type: Test > Components: REST, test >Affects Versions: 3.0.0, 1.5.0, 1.3.3, 2.0.2, 2.1.1, 1.4.7 >Reporter: Ted Yu >Assignee: Sean Busbey >Priority: Major > > The following can be observed in master branch: > {code} > java.lang.NullPointerException > at > org.apache.hadoop.hbase.rest.TestTableResource.setUpBeforeClass(TestTableResource.java:134) > {code} > The NPE comes from the following in TestEndToEndSplitTransaction : > {code} > compactAndBlockUntilDone(TEST_UTIL.getAdmin(), > TEST_UTIL.getMiniHBaseCluster().getRegionServer(0), > daughterA.getRegionName()); > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)