You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by mh...@apache.org on 2021/08/07 18:11:47 UTC
[asterixdb] branch master updated: [NO ISSUE][CLUS] Clone partition
state
This is an automated email from the ASF dual-hosted git repository.
mhubail pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git
The following commit(s) were added to refs/heads/master by this push:
new 5f11823 [NO ISSUE][CLUS] Clone partition state
5f11823 is described below
commit 5f118234d3253791ee3fa473979410c115290b0e
Author: Murtadha Hubail <mu...@couchbase.com>
AuthorDate: Sat Aug 7 02:58:42 2021 +0300
[NO ISSUE][CLUS] Clone partition state
- user model changes: no
- storage format changes: no
- interface changes: no
Details:
- When cloning a cluster partition, ensure its current state is
cloned too.
Change-Id: Ic459de01b4bb2243625cd49c80181f25b63cce5f
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12704
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mh...@apache.org>
Reviewed-by: Ali Alsuliman <al...@gmail.com>
---
.../java/org/apache/asterix/common/cluster/ClusterPartition.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/cluster/ClusterPartition.java b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/cluster/ClusterPartition.java
index cc99421..504155e 100644
--- a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/cluster/ClusterPartition.java
+++ b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/cluster/ClusterPartition.java
@@ -71,7 +71,10 @@ public class ClusterPartition implements Cloneable {
@Override
public ClusterPartition clone() {
- return new ClusterPartition(partitionId, nodeId, ioDeviceNum);
+ ClusterPartition clone = new ClusterPartition(partitionId, nodeId, ioDeviceNum);
+ clone.setPendingActivation(pendingActivation);
+ clone.setActiveNodeId(activeNodeId);
+ return clone;
}
@Override