You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by "Zhen Zhang (JIRA)" <ji...@apache.org> on 2015/03/17 22:51:38 UTC

[jira] [Updated] (HELIX-563) Throw more meaningful exceptions when AutoRebalanceStrategy#computePartitionAssignment inputs are invalid

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

Zhen Zhang updated HELIX-563:
-----------------------------
    Affects Version/s: 0.6.4

> Throw more meaningful exceptions when AutoRebalanceStrategy#computePartitionAssignment inputs are invalid
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HELIX-563
>                 URL: https://issues.apache.org/jira/browse/HELIX-563
>             Project: Apache Helix
>          Issue Type: Bug
>    Affects Versions: 0.6.4
>            Reporter: Zhen Zhang
>            Assignee: Zhen Zhang
>             Fix For: 0.6.5
>
>
> We hit the following NPE when the input for AutoRebalanceStrategy#computePartitionAssignment is invalid:
> {noformat}
> java.lang.NullPointerException
>         at org.apache.helix.controller.strategy.AutoRebalanceStrategy$Node.access$300(AutoRebalanceStrategy.java:571)
>         at org.apache.helix.controller.strategy.AutoRebalanceStrategy.computeExistingNonPreferredPlacement(AutoRebalanceStrategy.java:437)
>         at org.apache.helix.controller.strategy.AutoRebalanceStrategy.computePartitionAssignment(AutoRebalanceStrategy.java:122)
> ...
> {noformat}
> The particular problem is curMapping.keySet() is not a subset of allPartitions in the following code snippet:
> {noformat}
> AutoRebalanceStrategy strategy = new AutoRebalanceStrategy(.., allPartitions,...)
> strategy.computePartitionAssignment(..., curMapping, ...)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)