You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "sashapolo (via GitHub)" <gi...@apache.org> on 2025/06/21 10:42:12 UTC
Re: [PR] IGNITE-25568 Validate enabled colocation homogeneity on node join [ignite-3]
sashapolo commented on code in PR #6089:
URL: https://github.com/apache/ignite-3/pull/6089#discussion_r2160002751
##########
modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/ValidationManager.java:
##########
@@ -112,13 +113,28 @@ protected ValidationResult validateNode(
"Cluster tags do not match. Cluster tag: %s, cluster tag stored in CMG: %s",
clusterTag, state.clusterTag()
));
+ } else if (!isColocationEnabledMatched(isColocationEnabled(node))) {
+ return ValidationResult.errorResult(String.format(
+ "Colocation enabled mode does not match. Joining node colocation mode is: %s, cluster colocation mode is: %s",
+ isColocationEnabled(node),
+ isColocationEnabled(logicalTopology.getLogicalTopology().nodes().iterator().next())
+ ));
} else {
putValidatedNode(node);
return ValidationResult.successfulResult();
}
}
+ private static boolean isColocationEnabled(LogicalNode node) {
Review Comment:
I didn't notice that, makes sense then
--
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-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org