fixes #124: Reject cluster join when node identifier is already in use#125
Open
guusdk wants to merge 1 commit intoigniterealtime:mainfrom
Open
fixes #124: Reject cluster join when node identifier is already in use#125guusdk wants to merge 1 commit intoigniterealtime:mainfrom
guusdk wants to merge 1 commit intoigniterealtime:mainfrom
Conversation
… already in use With the introduction of static, human-configured node identifiers, identifier uniqueness is no longer guaranteed by randomness (OF-3181). Before joining a cluster, the local node now checks whether its configured node identifier is already used by an existing cluster member. If a duplicate is detected, the join is refused to prevent multiple nodes from operating with the same identifier. Additionally, this change causes messages to be logged on standard-out/err when the local node is joining a cluster.
Fishbowler
reviewed
Feb 18, 2026
Member
Fishbowler
left a comment
There was a problem hiding this comment.
Looks sensible, but one open query (accidentally attached to the wrong line, but I don't think the line is even relevant to the question)
| for (final Member member : cluster.getMembers()) { | ||
| clusterNodesInfo.put(ClusteredCacheFactory.getNodeID(member), | ||
| new HazelcastClusterNodeInfo(member, cluster.getClusterTime())); | ||
| final NodeID nodeID = ClusteredCacheFactory.getNodeID(member); |
Member
There was a problem hiding this comment.
How do you expect this to behave with 2 booting nodes with the same node ID forming a cluster for the first time?
Does one become the cluster that the other is joining? Or do both reject one another? Is there a difference in terms of how this might affect a production environment?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the introduction of static, human-configured node identifiers, identifier uniqueness is no longer guaranteed by randomness (OF-3181).
Before joining a cluster, the local node now checks whether its configured node identifier is already used by an existing cluster member. If a duplicate is detected, the join is refused to prevent multiple nodes from operating with the same identifier.
Additionally, this change causes messages to be logged on standard-out/err when the local node is joining a cluster.