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

Wrong balance if there are multiple invalid Replicas when using MoveDisallowedReplicas #2

Open
kjelle opened this issue Oct 9, 2017 · 1 comment

Comments

@kjelle
Copy link

kjelle commented Oct 9, 2017

Hello.
Nice program you created.

If you got e.g. 3 replicas, and 2 of them are non-existant Broker IDs, and you run with maxReassign:1, it will propose a move which uses one of the invalid broker IDs, and the reassignment failes.

And, if you run with maxReassign:2, it will fix the second one in the second run of MoveDisallowedReplicas. However, on the JSON printout it prints both moves, with the last value, twice. That isnt a problem, but it could generate a x-times larger JSON than neccessary.

I am currently looking into how you can fix it.

@CAFxX
Copy link
Owner

CAFxX commented Nov 10, 2017

@kjelle I just fixed an issue in MoveDisallowedReplicas that could result in the step failing or returning suboptimal results; can you try again with current master? If it still reproduces, can you submit a test case? (see in balancer_test.go)

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