Ray Mattingly created HBASE-29186:
-------------------------------------

             Summary: RegionPlanConditionals can produce a null pointer
                 Key: HBASE-29186
                 URL: https://issues.apache.org/jira/browse/HBASE-29186
             Project: HBase
          Issue Type: Bug
    Affects Versions: 2.7.0
            Reporter: Ray Mattingly
            Assignee: Ray Mattingly


 
{noformat}
hmaster-ajax-hb2-a-1-7b67bf7df4-hfmb9 hmaster java.lang.NullPointerException: 
Cannot read the array length because "array" is 
nullhmaster-ajax-hb2-a-1-7b67bf7df4-hfmb9 hmaster   at 
java.util.Arrays.stream(Arrays.java:5559) 
~[?:?]hmaster-ajax-hb2-a-1-7b67bf7df4-hfmb9 hmaster   at 
org.apache.hadoop.hbase.master.balancer.RegionPlanConditional.isViolating(RegionPlanConditional.java:103)
 
~[hbase-server-2.6-hubspot-SNAPSHOT.jar:2.6-hubspot-SNAPSHOT]hmaster-ajax-hb2-a-1-7b67bf7df4-hfmb9
 hmaster   at 
org.apache.hadoop.hbase.master.balancer.BalancerConditionals.isViolating(BalancerConditionals.java:179)
 
~[hbase-server-2.6-hubspot-SNAPSHOT.jar:2.6-hubspot-SNAPSHOT]hmaster-ajax-hb2-a-1-7b67bf7df4-hfmb9
 hmaster   at 
org.apache.hadoop.hbase.master.balancer.BalancerConditionals.isViolating(BalancerConditionals.java:170)
 
~[hbase-server-2.6-hubspot-SNAPSHOT.jar:2.6-hubspot-SNAPSHOT]hmaster-ajax-hb2-a-1-7b67bf7df4-hfmb9
 hmaster   at 
org.apache.hadoop.hbase.master.balancer.TableIsolationCandidateGenerator.generateCandidate(TableIsolationCandidateGenerator.java:87)
 
~[hbase-server-2.6-hubspot-SNAPSHOT.jar:2.6-hubspot-SNAPSHOT]hmaster-ajax-hb2-a-1-7b67bf7df4-hfmb9
 hmaster   at 
org.apache.hadoop.hbase.master.balancer.RegionPlanConditionalCandidateGenerator.getWeight(RegionPlanConditionalCandidateGenerator.java:104)
 
~[hbase-server-2.6-hubspot-SNAPSHOT.jar:2.6-hubspot-SNAPSHOT]hmaster-ajax-hb2-a-1-7b67bf7df4-hfmb9
 hmaster   at 
org.apache.hadoop.hbase.master.balancer.BalancerConditionals.lambda$shouldRunBalancer$0(BalancerConditionals.java:86)
 ~[hbase-server-2.6-hubspot-SNAPSHOT.jar:2.6-hubspot-SNAPSHOT]{noformat}
 

 

The value of this lookup can be null, and we can't pass a null value to 
Arrays#stream.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to