Skip to content

Conversation

vdinesh4738
Copy link

Reaping a stale Raft peer entry with an IP exact to current leader causes RPCs to fail.

This PR fixes the RPC error by registereing the node with the node id. Registering the node with node id will prevent the consul to consider the node renamed as a new one, in this PR we take the name as metadata for the node instead of taking it for unique name.

For more details advantages and drawbacks please look in to comments at https://hashicorp.atlassian.net/browse/CSL-9543

@vdinesh4738 vdinesh4738 requested a review from a team as a code owner September 22, 2025 07:23
@github-actions github-actions bot added the theme/api Relating to the HTTP API interface label Sep 22, 2025
cfg.PrimaryDatacenter = runtimeCfg.PrimaryDatacenter
cfg.DataDir = runtimeCfg.DataDir
cfg.NodeName = runtimeCfg.NodeName
cfg.NodeName = string(runtimeCfg.NodeID)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest not to change the NodeName. Please share the justification for overriding the NodeName with NodeId.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme/api Relating to the HTTP API interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants