rpuch commented on code in PR #4433:
URL: https://github.com/apache/ignite-3/pull/4433#discussion_r1793294049


##########
modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/ClusterStateStorageManager.java:
##########
@@ -107,6 +113,35 @@ List<LogicalNode> getValidatedNodes() {
         return storage.getWithPrefix(VALIDATED_NODE_PREFIX, (k, v) -> 
fromBytes(v));
     }
 
+    /**
+     * Saves information about Metastorage repair.
+     *
+     * @param repairClusterId ID that the cluster has when performaing the 
repair.
+     * @param repairingConfigIndex Raft index in the Metastorage group under 
which the forced configuration is (or will be) saved.
+     */
+    void saveMetastorageRepairInfo(UUID repairClusterId, long 
repairingConfigIndex) {
+        storage.put(METASTORAGE_REPAIR_CLUSTER_ID_KEY, 
uuidToBytes(repairClusterId));

Review Comment:
   Added `putAll()` to add them atomically



-- 
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