alievmirza commented on code in PR #2172:
URL: https://github.com/apache/ignite-3/pull/2172#discussion_r1224462828
##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZonesUtil.java:
##########
@@ -73,6 +73,12 @@ public class DistributionZonesUtil {
/** Key prefix for zones' logical topology nodes and logical topology
version. */
private static final String DISTRIBUTION_ZONES_LOGICAL_TOPOLOGY_PREFIX =
"distributionZones.logicalTopology.";
+ /** Key value for zones' nodes' attributes in vault. */
+ private static final String DISTRIBUTION_ZONES_NODES_ATTRIBUTES_VAULT =
"vault.distributionZones.nodesAttributes";
+
+ /** Key prefix for zones' logical topology nodes in vault. */
+ private static final String DISTRIBUTION_ZONES_LOGICAL_TOPOLOGY_VAULT =
"vault.distributionZones.logicalTopology.nodes";
Review Comment:
Thanks, changed
##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java:
##########
@@ -1340,6 +1349,26 @@ public void onError(Throwable e) {
};
}
+ /**
+ * Saves logical topology and nodes' attributes map to vault atomically in
one batch.
+ * After restart it could be used to restore these fields.
+ *
+ * @param newLogicalTopology Logical topology.
+ */
+ private void
saveLogicalTopologyNodeAttributesToVault(Set<NodeWithAttributes>
newLogicalTopology) {
Review Comment:
renamed
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]