asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murtadha Hubail (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ASTERIXDB-2005) ArithmeticException on dataset rebalance to a node group with no nodes
Date Fri, 28 Jul 2017 15:46:00 GMT
Murtadha Hubail created ASTERIXDB-2005:
------------------------------------------

             Summary: ArithmeticException on dataset rebalance to a node group with no nodes
                 Key: ASTERIXDB-2005
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2005
             Project: Apache AsterixDB
          Issue Type: Bug
          Components: CLUS - Cluster management
            Reporter: Murtadha Hubail
            Assignee: Murtadha Hubail


When a dataset rebalance is done over a node group with no nodes, the following exception
is encountered:

{code:java}
java.lang.ArithmeticException: / by zero
	at org.apache.asterix.metadata.declared.MetadataProvider.getCardinalityPerPartitionHint(MetadataProvider.java:719)
~[asterix-metadata-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
	at org.apache.asterix.metadata.utils.SecondaryIndexOperationsHelper.init(SecondaryIndexOperationsHelper.java:198)
~[asterix-metadata-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
	at org.apache.asterix.metadata.utils.SecondaryIndexOperationsHelper.createIndexOperationsHelper(SecondaryIndexOperationsHelper.java:163)
~[asterix-metadata-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
	at org.apache.asterix.metadata.utils.IndexUtil.buildDropIndexJobSpec(IndexUtil.java:112)
~[asterix-metadata-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
	at org.apache.asterix.utils.RebalanceUtil.dropDatasetFiles(RebalanceUtil.java:330) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
	at org.apache.asterix.utils.RebalanceUtil.rebalance(RebalanceUtil.java:200) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
	at org.apache.asterix.utils.RebalanceUtil.rebalance(RebalanceUtil.java:124) ~[asterix-app-0.9.2-SNAPSHOT.jar:0.9.2-SNAPSHOT]
{code}

The proposed solution is to treat rebalance to no nodes as a drop dataset.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message