GitHub user lei-xia opened a pull request:
https://github.com/apache/helix/pull/52
[HELIX-631] AutoRebalanceStrategy does not work correctly all the time.
What happened here is: Helix always assigns a random node for a new
(unassigned) replica (logic in assignOrphans()), and then try to move it to its
preferred node later. The random node chosen is based on the hashing of replica
name. Given a specific partition name and number of replicas, there could be a
case that no node can be found for a replica.
The fix is to always assign its preferred node to a new replica unless that
node is full, then randomly find another non-preferred node.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lei-xia/helix helix-0.6.x
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/helix/pull/52.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #52
----
commit 2c6df69d7206b2e64902c84842c61571315e30fa
Author: Lei Xia <[email protected]>
Date: 2016-09-13T00:54:40Z
[HELIX-631] AutoRebalanceStrategy does not work correctly all the time.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---