Skip to content
Permalink
Browse files
[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 <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
  • Loading branch information
mhubail committed Aug 7, 2021
1 parent c3bdeb0 commit 5f118234d3253791ee3fa473979410c115290b0e
Showing 1 changed file with 4 additions and 1 deletion.
@@ -71,7 +71,10 @@ public void setPendingActivation(boolean pendingActivation) {

@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

0 comments on commit 5f11823

Please sign in to comment.