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

[backport] admin_api: Added reset/get leaders_table requests #4303

Merged
merged 14 commits into from
Apr 19, 2022

Conversation

VadimPlh
Copy link
Contributor

Cover letter

Backport #4259
Backport #4237

Fixes #4302

Release notes

  • New admin api request /v1/debug/partition_leaders_table
  • Add /v1/debug/reset_leaders request to reset leaders info on node

This request is used to refresh leaders info on node
User can invoke it by using admin api

On some cases leaders_table can not be updated long time
So client request can be failed in this cases. New request
allows us force leaders table by hand, after it shard should be
refresh all info about leaders.

After reset leaders info, metadata responce will not contain
leaders for all partition during short period of time ~150ms.
heartbits delay or leader notification delay.

(cherry picked from commit aae98ed)
Copy link
Member

@ivotron ivotron left a comment

Choose a reason for hiding this comment

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

this seems to be breaking all steps, expect the k8s-helm one

This debug API to understand what
current node thinks about leaders.

User can execute it by usung admin
API.

Becasue it is debug request we only execute
it on one core, without merging ans.

(cherry picked from commit 8a84ba8)
@VadimPlh VadimPlh merged commit b8e5961 into redpanda-data:v21.11.x Apr 19, 2022
@andrewhsu andrewhsu added this to the v21.11.13 milestone Apr 20, 2022
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

4 participants