Skip to content

Add unidirectional partition test#3

Open
zhoujianzzz wants to merge 1 commit into
mainfrom
zhoujian/partialnetworkpartition
Open

Add unidirectional partition test#3
zhoujianzzz wants to merge 1 commit into
mainfrom
zhoujian/partialnetworkpartition

Conversation

@zhoujianzzz

@zhoujianzzz zhoujianzzz commented Oct 16, 2023

Copy link
Copy Markdown
Owner

In some situations, a one-way network partition could occur, where the existing leader in an etcd cluster is able to receive vote requests from a candidate, but can't send responses back. This could obstruct the election of a new leader since the candidate may not receive sufficient votes without a response from the original leader.

Without a PreVote phase in place, this network partition could result in the original leader erroneously transitioning to a follower state. Furthermore, the etcd cluster would remain leaderless as it's unable to elect a new leader due to the lack of necessary votes.

This is why etcd implements a PreVote state. It acts as a preventive measure to maintain stability in the cluster and ensure a smooth transition of leadership, even in the face of network partitions.

To ensure this situation is adequately addressed, it is recommended to include unidirectional network partition tests in the test coverage.

@zhoujianzzz zhoujianzzz force-pushed the zhoujian/partialnetworkpartition branch from f91ea72 to fcc7d59 Compare October 19, 2023 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant