helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhen Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HELIX-563) Throw more meaningful exceptions when AutoRebalanceStrategy#computePartitionAssignment inputs are invalid
Date Wed, 21 Jan 2015 20:23:35 GMT
Zhen Zhang created HELIX-563:
--------------------------------

             Summary: 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
            Reporter: Zhen Zhang


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)

Mime
View raw message