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

[v23.3.x] c/leaders: trigger leadership notification when term changes #16784

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #16776
Fixes: #16783,

When term changes but leader stays on the same we should still trigger
the leadership notification.

Downstream components like `leadership_balancer` rely on this
information to be triggered after successful leader election i.e. stable
term change.

Fixes: redpanda-data#16142

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 386d2b8)
Leadership notification is triggered only on successful leader election.
We do not need to pass the optional as `leader_id` is always present.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit faed71d)
@vbotbuildovich vbotbuildovich added this to the v23.3.x-next milestone Feb 28, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants