Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v21.11.14] backport: do not step down when replicating configuration failed #4349

Merged
merged 1 commit into from Apr 21, 2022

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Apr 20, 2022

In redpanda leader replicates a configuration after successful vote
round. Configuration replication success isn't required for the node to
hold the leadership.

In some scenarios, when majority of followers are behind the leader and
need recovery, configuration replication may timeout. This doesn't mean
however that leader should stepdown. In order to maintain leadership it
should continue recovering followers and step down only if there are no
heartbeat responses from majority of the followers.

Backport of PR #4342
Fixes #4353

In redpanda leader replicates a configuration after successful vote
round. Configuration replication success isn't required for the node to
hold the leadership.

In some scenarios, when majority of followers are behind the leader and
need recovery, configuration replication may timeout. This doesn't mean
however that leader should stepdown. In order to maintain leadership it
should continue recovering followers and step down only if there are no
heartbeat responses from majority of the followers.

Signed-off-by: Michal Maslanka <michal@vectorized.io>
(cherry picked from commit dea6cfb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants