-
Notifications
You must be signed in to change notification settings - Fork 229
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
Change instance operation orthogonal to instance enable #2615
Change instance operation orthogonal to instance enable #2615
Conversation
0ed81fb
to
f579a62
Compare
Set<String> nodes) { | ||
return nodes.stream() | ||
.filter(instance -> !instanceConfigMap.get(instance).getInstanceOperation().equals( | ||
InstanceConstants.InstanceOperation.EVACUATE.name())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's include the SWAP_IN as well. It will be same behavior.
helix-core/src/main/java/org/apache/helix/controller/rebalancer/DelayedAutoRebalancer.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add todo for util.
This change has been approved by @junkaixue |
Change instance operation orthogonal to instance enable
Change instance operation orthogonal to instance enable
Issues
#2589
Description
This change makes instance operation and instance enable/disable state to be orthogonal. We will have follow up changes to consolidate them.
Tests
The following tests are written for this issue:
[TestInstanceOperation.java]
The following is the result of the "mvn test" command on the appropriate module:
(If CI test fails due to known issue, please specify the issue and test PR locally. Then copy & paste the result of "mvn test" to here.)
Changes that Break Backward Compatibility (Optional)
(Consider including all behavior changes for public methods or API. Also include these changes in merge description so that other developers are aware of these changes. This allows them to make relevant code changes in feature branches accounting for the new method/API behavior.)
Documentation (Optional)
(Link the GitHub wiki you added)
Commits
Code Quality
(helix-style-intellij.xml if IntelliJ IDE is used)