Skip to content

[server] Require new leader ack for leader-only rebalance#3556

Open
swuferhong wants to merge 1 commit into
apache:mainfrom
swuferhong:leader-only-rebalance-hotfix
Open

[server] Require new leader ack for leader-only rebalance#3556
swuferhong wants to merge 1 commit into
apache:mainfrom
swuferhong:leader-only-rebalance-hotfix

Conversation

@swuferhong

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #3555

Leader-only rebalance previously completed once the current leader matched
the target leader after any NotifyLeaderAndIsr response for the bucket. Since
NotifyLeaderAndIsr is sent to multiple replicas, this could complete the task
before the new leader acknowledged the request.

Pass the bucket result and response server id into the completion check, and
only complete leader-only rebalance when the result succeeded and the response
came from the target new leader. Keep LeaderAndIsr change handling from
directly completing leader-only rebalance tasks.

Brief change log

Tests

API and Format

Documentation

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.

[server] Leader-only rebalance may finish before new leader acknowledges NotifyLeaderAndIsr

1 participant