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

IndexError: list index out of range #111

Open
cpanixperi opened this issue Feb 21, 2023 · 1 comment
Open

IndexError: list index out of range #111

cpanixperi opened this issue Feb 21, 2023 · 1 comment

Comments

@cpanixperi
Copy link

if new_leader != partition.replicas[0]:

partition.replicas[0] throws IndexError. Should be checked for null or empty before the index is referred

@marcmaliar
Copy link

partition.replicas should theoretically not be null. It can be empty, but in that case your partition has zero replicas, and it doesn't make any sense to reorder it.

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

No branches or pull requests

2 participants