asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ASTERIXDB-2005) ArithmeticException on dataset rebalance to a node group with no nodes
Date Sat, 29 Jul 2017 09:24:02 GMT

    [ https://issues.apache.org/jira/browse/ASTERIXDB-2005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16106080#comment-16106080
] 

ASF subversion and git services commented on ASTERIXDB-2005:
------------------------------------------------------------

Commit b8cc121cf5b38bce3c0c758c008ab036efe71d9d in asterixdb's branch refs/heads/master from
[~mhubail]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=b8cc121 ]

[ASTERIXDB-2005][CLUS] Treat dataset rebalance to no nodes as drop

- user model changes: no
- storage format changes: no
- interface changes: no

Details:
- Drop dataset when rebalanced to empty target nodes

Change-Id: I46f687e6006cba952dbfa1fa7771c7c2b7c13472
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1906
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
BAD: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <tillw@apache.org>


> 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