Skip to content

Prefer joining node with conflicting transport address when becoming master#22134

Merged
ywelsch merged 1 commit intoelastic:masterfrom
ywelsch:fix/prefer-joining-node-when-becoming-master
Dec 14, 2016
Merged

Prefer joining node with conflicting transport address when becoming master#22134
ywelsch merged 1 commit intoelastic:masterfrom
ywelsch:fix/prefer-joining-node-when-becoming-master

Conversation

@ywelsch
Copy link
Copy Markdown
Contributor

@ywelsch ywelsch commented Dec 13, 2016

PR #22049 changed the node update logic to never remove nodes from the cluster state when the cluster state is not published. This led to an issue electing a master (#22120) based on nodes with same transport address (but different node id) as previous nodes. The joining nodes should take precedence over conflicting ones as these nodes will also be the ones that have to commit the cluster state. Note that this only applies to the action of becoming master. If a master is established and a node joins an existing master, it will still be rejected if there is another node with same transport address.

…master

PR elastic#22049 changed the node update logic to never remove nodes from the cluster state when the cluster state is not published. This led to an issue electing
a master (elastic#22120) based on nodes with same transport address (but different node id) as previous nodes. The joining nodes should take precedence over
conflicting ones. Note that this only applies to the action of becoming master. If a master is established and a node joins an existing master, it will be
rejected if there is another node with same transport address.
Copy link
Copy Markdown

@abeyad abeyad left a comment

Choose a reason for hiding this comment

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

LGTM

@abeyad
Copy link
Copy Markdown

abeyad commented Dec 13, 2016

retest this please

@ywelsch ywelsch added the v5.2.0 label Dec 14, 2016
@ywelsch ywelsch merged commit a511fb9 into elastic:master Dec 14, 2016
@ywelsch
Copy link
Copy Markdown
Contributor Author

ywelsch commented Dec 14, 2016

Thanks @abeyad

ywelsch added a commit that referenced this pull request Dec 14, 2016
…master (#22134)

PR #22049 changed the node update logic to never remove nodes from the cluster state when the cluster state is not published. This led to an issue electing a master (#22120) based on nodes with same transport address (but different node id) as previous nodes. The joining nodes should take precedence over conflicting ones. Note that this only applies to the action of becoming master. If a master is established and a node joins an existing master, it will be rejected if there is another node with same transport address.
ywelsch added a commit that referenced this pull request Dec 14, 2016
@ywelsch ywelsch removed the v5.2.0 label Dec 14, 2016
ywelsch added a commit to ywelsch/elasticsearch that referenced this pull request Dec 23, 2016
…master (elastic#22134)

PR elastic#22049 changed the node update logic to never remove nodes from the cluster state when the cluster state is not published. This led to an issue electing a master (elastic#22120) based on nodes with same transport address (but different node id) as previous nodes. The joining nodes should take precedence over conflicting ones. Note that this only applies to the action of becoming master. If a master is established and a node joins an existing master, it will be rejected if there is another node with same transport address.
ywelsch added a commit that referenced this pull request Dec 23, 2016
…master (#22134)

PR #22049 changed the node update logic to never remove nodes from the cluster state when the cluster state is not published. This led to an issue electing a master (#22120) based on nodes with same transport address (but different node id) as previous nodes. The joining nodes should take precedence over conflicting ones. Note that this only applies to the action of becoming master. If a master is established and a node joins an existing master, it will be rejected if there is another node with same transport address.
@ywelsch ywelsch added the v5.2.0 label Dec 23, 2016
@ywelsch
Copy link
Copy Markdown
Contributor Author

ywelsch commented Dec 23, 2016

backported to 5.2.0

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

Labels

:Distributed/Discovery-Plugins Anything related to our integration plugins with EC2, GCP and Azure >enhancement v5.2.0 v6.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants