[jira] [Commented] (HBASE-16910) Avoid NPE when starting StochasticLoadBalancer
[ https://issues.apache.org/jira/browse/HBASE-16910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16721121#comment-16721121 ] Hudson commented on HBASE-16910: Results for branch branch-1.3 [build #576 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-1.3/576/]: (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/576//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/576//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/576//JDK8_Nightly_Build_Report_(Hadoop2)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. > Avoid NPE when starting StochasticLoadBalancer > -- > > Key: HBASE-16910 > URL: https://issues.apache.org/jira/browse/HBASE-16910 > Project: HBase > Issue Type: Bug > Components: Balancer >Affects Versions: 2.0.0 >Reporter: Guanghao Zhang >Assignee: Guanghao Zhang >Priority: Minor > Fix For: 1.4.0, 1.3.3, 2.0.0 > > Attachments: HBASE-16910-branch-1.patch, HBASE-16910-v1.patch, > HBASE-16910.patch > > > When master start, it initialize StochasticLoadBalancer. > {code} > this.balancer.setClusterStatus(getClusterStatus()); > this.balancer.setMasterServices(this); > {code} > It first setClusterStatus(), then setMasterService(). But in setClusterStatus > method, it use master service which is not initialized. So it will throw NPE. > {code} > int tablesCount = isByTable ? services.getTableDescriptors().getAll().size() > : 1; > {code} > It happens when set isByTable is ture. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-16910) Avoid NPE when starting StochasticLoadBalancer
[ https://issues.apache.org/jira/browse/HBASE-16910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16720735#comment-16720735 ] Hudson commented on HBASE-16910: SUCCESS: Integrated in Jenkins build HBase-1.3-IT #509 (See [https://builds.apache.org/job/HBase-1.3-IT/509/]) HBASE-16910 Avoid NPE when starting StochasticLoadBalancer (apurtell: rev 0759fb16439d9661193bad6097a32fa4cb549fa7) * (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java * (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java > Avoid NPE when starting StochasticLoadBalancer > -- > > Key: HBASE-16910 > URL: https://issues.apache.org/jira/browse/HBASE-16910 > Project: HBase > Issue Type: Bug > Components: Balancer >Affects Versions: 2.0.0 >Reporter: Guanghao Zhang >Assignee: Guanghao Zhang >Priority: Minor > Fix For: 1.4.0, 1.3.3, 2.0.0 > > Attachments: HBASE-16910-branch-1.patch, HBASE-16910-v1.patch, > HBASE-16910.patch > > > When master start, it initialize StochasticLoadBalancer. > {code} > this.balancer.setClusterStatus(getClusterStatus()); > this.balancer.setMasterServices(this); > {code} > It first setClusterStatus(), then setMasterService(). But in setClusterStatus > method, it use master service which is not initialized. So it will throw NPE. > {code} > int tablesCount = isByTable ? services.getTableDescriptors().getAll().size() > : 1; > {code} > It happens when set isByTable is ture. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-16910) Avoid NPE when starting StochasticLoadBalancer
[ https://issues.apache.org/jira/browse/HBASE-16910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16534754#comment-16534754 ] Monani Mihir commented on HBASE-16910: -- Hi [~mantonov] , are you planning to pick this patch for branch-1.3 ? Apart from issue mention in JIRA, when ever we do master failover, below error will be thrown :- {code:java} 2018-03-10 01:08:37,403 DEBUG [main-EventThread] master.ActiveMasterManager - No master available. Notifying waiting threads . . . 2018-03-10 01:09:42,571 ERROR [.activeMasterManager] balancer.StochasticLoadBalancer - failed to get the size of all tables, exception = null {code} Master failover will works without this patch too. Its just throw above mentioned error even if it is set is *setByTable = false* > Avoid NPE when starting StochasticLoadBalancer > -- > > Key: HBASE-16910 > URL: https://issues.apache.org/jira/browse/HBASE-16910 > Project: HBase > Issue Type: Bug > Components: Balancer >Affects Versions: 2.0.0 >Reporter: Guanghao Zhang >Assignee: Guanghao Zhang >Priority: Minor > Fix For: 1.4.0, 2.0.0 > > Attachments: HBASE-16910-branch-1.patch, HBASE-16910-v1.patch, > HBASE-16910.patch > > > When master start, it initialize StochasticLoadBalancer. > {code} > this.balancer.setClusterStatus(getClusterStatus()); > this.balancer.setMasterServices(this); > {code} > It first setClusterStatus(), then setMasterService(). But in setClusterStatus > method, it use master service which is not initialized. So it will throw NPE. > {code} > int tablesCount = isByTable ? services.getTableDescriptors().getAll().size() > : 1; > {code} > It happens when set isByTable is ture. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (HBASE-16910) Avoid NPE when starting StochasticLoadBalancer
[ https://issues.apache.org/jira/browse/HBASE-16910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15605451#comment-15605451 ] Hudson commented on HBASE-16910: SUCCESS: Integrated in Jenkins build HBase-1.4 #495 (See [https://builds.apache.org/job/HBase-1.4/495/]) HBASE-16910 Avoid NPE when starting StochasticLoadBalancer (ashishsinghi: rev ae502a9d5ce3dc5c4a485c3ff364d433bdf29a10) * (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java * (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java > Avoid NPE when starting StochasticLoadBalancer > -- > > Key: HBASE-16910 > URL: https://issues.apache.org/jira/browse/HBASE-16910 > Project: HBase > Issue Type: Bug > Components: Balancer >Affects Versions: 2.0.0 >Reporter: Guanghao Zhang >Assignee: Guanghao Zhang >Priority: Minor > Fix For: 2.0.0, 1.4.0 > > Attachments: HBASE-16910-branch-1.patch, HBASE-16910-v1.patch, > HBASE-16910.patch > > > When master start, it initialize StochasticLoadBalancer. > {code} > this.balancer.setClusterStatus(getClusterStatus()); > this.balancer.setMasterServices(this); > {code} > It first setClusterStatus(), then setMasterService(). But in setClusterStatus > method, it use master service which is not initialized. So it will throw NPE. > {code} > int tablesCount = isByTable ? services.getTableDescriptors().getAll().size() > : 1; > {code} > It happens when set isByTable is ture. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HBASE-16910) Avoid NPE when starting StochasticLoadBalancer
[ https://issues.apache.org/jira/browse/HBASE-16910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15604386#comment-15604386 ] Mikhail Antonov commented on HBASE-16910: - Thanks for the ping! I'll check this back once i'm ready with the first RC. > Avoid NPE when starting StochasticLoadBalancer > -- > > Key: HBASE-16910 > URL: https://issues.apache.org/jira/browse/HBASE-16910 > Project: HBase > Issue Type: Bug > Components: Balancer >Affects Versions: 2.0.0 >Reporter: Guanghao Zhang >Assignee: Guanghao Zhang >Priority: Minor > Fix For: 2.0.0, 1.4.0 > > Attachments: HBASE-16910-branch-1.patch, HBASE-16910-v1.patch, > HBASE-16910.patch > > > When master start, it initialize StochasticLoadBalancer. > {code} > this.balancer.setClusterStatus(getClusterStatus()); > this.balancer.setMasterServices(this); > {code} > It first setClusterStatus(), then setMasterService(). But in setClusterStatus > method, it use master service which is not initialized. So it will throw NPE. > {code} > int tablesCount = isByTable ? services.getTableDescriptors().getAll().size() > : 1; > {code} > It happens when set isByTable is ture. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HBASE-16910) Avoid NPE when starting StochasticLoadBalancer
[ https://issues.apache.org/jira/browse/HBASE-16910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15604349#comment-15604349 ] Guanghao Zhang commented on HBASE-16910: Attach a patch for branch-1. It can be applied on branch-1 and branch-1.3. This bug was introduced by HBASE-13965, it was applied on branch-1.3. So this fix only need be applied on brnach-1.3 and branch-1, too. Thanks. > Avoid NPE when starting StochasticLoadBalancer > -- > > Key: HBASE-16910 > URL: https://issues.apache.org/jira/browse/HBASE-16910 > Project: HBase > Issue Type: Bug > Components: Balancer >Affects Versions: 2.0.0 >Reporter: Guanghao Zhang >Assignee: Guanghao Zhang >Priority: Minor > Fix For: 2.0.0 > > Attachments: HBASE-16910-branch-1.patch, HBASE-16910-v1.patch, > HBASE-16910.patch > > > When master start, it initialize StochasticLoadBalancer. > {code} > this.balancer.setClusterStatus(getClusterStatus()); > this.balancer.setMasterServices(this); > {code} > It first setClusterStatus(), then setMasterService(). But in setClusterStatus > method, it use master service which is not initialized. So it will throw NPE. > {code} > int tablesCount = isByTable ? services.getTableDescriptors().getAll().size() > : 1; > {code} > It happens when set isByTable is ture. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HBASE-16910) Avoid NPE when starting StochasticLoadBalancer
[ https://issues.apache.org/jira/browse/HBASE-16910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15604316#comment-15604316 ] Ashish Singhi commented on HBASE-16910: --- We faced this issue yesterday in one of our test cluster also which is based on branch-1.0. [~zghaobac], can you provide patch for other branches also. If not let me know I can prepare the patches. Ideally bug fix should go to all the running versions. > Avoid NPE when starting StochasticLoadBalancer > -- > > Key: HBASE-16910 > URL: https://issues.apache.org/jira/browse/HBASE-16910 > Project: HBase > Issue Type: Bug > Components: Balancer >Affects Versions: 2.0.0 >Reporter: Guanghao Zhang >Assignee: Guanghao Zhang >Priority: Minor > Fix For: 2.0.0 > > Attachments: HBASE-16910-v1.patch, HBASE-16910.patch > > > When master start, it initialize StochasticLoadBalancer. > {code} > this.balancer.setClusterStatus(getClusterStatus()); > this.balancer.setMasterServices(this); > {code} > It first setClusterStatus(), then setMasterService(). But in setClusterStatus > method, it use master service which is not initialized. So it will throw NPE. > {code} > int tablesCount = isByTable ? services.getTableDescriptors().getAll().size() > : 1; > {code} > It happens when set isByTable is ture. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HBASE-16910) Avoid NPE when starting StochasticLoadBalancer
[ https://issues.apache.org/jira/browse/HBASE-16910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15596725#comment-15596725 ] Hudson commented on HBASE-16910: SUCCESS: Integrated in Jenkins build HBase-Trunk_matrix #1829 (See [https://builds.apache.org/job/HBase-Trunk_matrix/1829/]) HBASE-16910 Avoid NPE when starting StochasticLoadBalancer (Guanghao (tedyu: rev e2236396713cfc1cef61150a569e972c2faaca04) * (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java * (edit) hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupBasedLoadBalancer.java * (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java > Avoid NPE when starting StochasticLoadBalancer > -- > > Key: HBASE-16910 > URL: https://issues.apache.org/jira/browse/HBASE-16910 > Project: HBase > Issue Type: Bug > Components: Balancer >Affects Versions: 2.0.0 >Reporter: Guanghao Zhang >Assignee: Guanghao Zhang >Priority: Minor > Fix For: 2.0.0 > > Attachments: HBASE-16910-v1.patch, HBASE-16910.patch > > > When master start, it initialize StochasticLoadBalancer. > {code} > this.balancer.setClusterStatus(getClusterStatus()); > this.balancer.setMasterServices(this); > {code} > It first setClusterStatus(), then setMasterService(). But in setClusterStatus > method, it use master service which is not initialized. So it will throw NPE. > {code} > int tablesCount = isByTable ? services.getTableDescriptors().getAll().size() > : 1; > {code} > It happens when set isByTable is ture. -- This message was sent by Atlassian JIRA (v6.3.4#6332)