Cyrill commented on code in PR #4966:
URL: https://github.com/apache/ignite-3/pull/4966#discussion_r1898542062


##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/rebalance/RebalanceRaftGroupEventsListener.java:
##########
@@ -469,6 +489,67 @@ private static void doStableKeySwitch(
         }
     }
 
+    private static Operation handleAssignmentsChainChange(
+            ByteArray assignmentsChainKey,
+            Entry assignmentsChainEntry,
+            Assignments pendingAssignments,
+            Assignments stableAssignments
+    ) {
+        // We write this key only in HA mode. See 
TableManager.writeTableAssignmentsToMetastore.
+        if (assignmentsChainEntry.value() != null) {
+            AssignmentsChain updatedAssignmentsChain = updateAssignmentsChain(
+                    AssignmentsChain.fromBytes(assignmentsChainEntry.value()),
+                    stableAssignments,
+                    pendingAssignments
+            );
+            return put(assignmentsChainKey, updatedAssignmentsChain.toBytes());
+        } else {
+            return Operations.noop();
+        }
+    }
+
+    private static AssignmentsChain updateAssignmentsChain(AssignmentsChain 
assignmentsChain, Assignments newStable,
+            Assignments pendingAssignments) {
+

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to