[ 
https://issues.apache.org/jira/browse/HBASE-29186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ray Mattingly updated HBASE-29186:
----------------------------------
    Description: 
The value of this lookup can be null, and we can't pass a null value to 
Arrays#stream:
{noformat}
java.lang.NullPointerException: Cannot read the array length because "array" is 
null
  at java.util.Arrays.stream(Arrays.java:5559) ~[?:?]
  at 
org.apache.hadoop.hbase.master.balancer.RegionPlanConditional.isViolating(RegionPlanConditional.java:103)
 ~[hbase-server-2.6-hubspot-SNAPSHOT.jar:2.6-hubspot-SNAPSHOT]{noformat}

  was:
The value of this lookup can be null, and we can't pass a null value to 
Arrays#stream:
{noformat}
hmaster-ajax-hb2-a-1-7b67bf7df4-hfmb9 hmaster java.lang.NullPointerException: 
Cannot read the array length because "array" is null
hmaster-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}


> 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
>            Priority: Major
>
> The value of this lookup can be null, and we can't pass a null value to 
> Arrays#stream:
> {noformat}
> java.lang.NullPointerException: Cannot read the array length because "array" 
> is null
>   at java.util.Arrays.stream(Arrays.java:5559) ~[?:?]
>   at 
> org.apache.hadoop.hbase.master.balancer.RegionPlanConditional.isViolating(RegionPlanConditional.java:103)
>  ~[hbase-server-2.6-hubspot-SNAPSHOT.jar:2.6-hubspot-SNAPSHOT]{noformat}



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

Reply via email to