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

Add an option to only use brokers that are present in Zookeeper #46

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

conniec
Copy link

@conniec conniec commented Aug 5, 2016

When we use the remove action in the tools to transfer partitions off a dead broker, the partitions get assigned to all brokers in cluster.brokers if -t is not specified.

However, if some of our topics is in a bad state (ie. some of the brokers in the ISR are dead), those dead brokers also get added to cluster.brokers and the partitions can potentially be assigned to them in the tool. This will cause the reassignment to fail.

I would like to propose adding a flag that controls which brokers are added to the cluster in the initial setup, and use the Zookeeper broker config as the source of truth. I don't have context on why we would want to add potentially dead brokers, but this allows us to keep both scenarios.

jean0313 added a commit to jean0313/kafka-tools that referenced this pull request Sep 1, 2021
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