-
Notifications
You must be signed in to change notification settings - Fork 228
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
[apache/helix] -- Added detail in the Exception message for WAGED rebalance (hard constraint) failures. #2829
[apache/helix] -- Added detail in the Exception message for WAGED rebalance (hard constraint) failures. #2829
Conversation
.../java/org/apache/helix/controller/rebalancer/waged/constraints/ConstraintBasedAlgorithm.java
Outdated
Show resolved
Hide resolved
.../java/org/apache/helix/controller/rebalancer/waged/constraints/FaultZoneAwareConstraint.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/org/apache/helix/controller/rebalancer/waged/constraints/HardConstraint.java
Outdated
Show resolved
Hide resolved
…alance (hard constraint) failures.
…alance (hard constraint) failures.
08100f7
to
87dd9e3
Compare
…alance (hard constraint) failures.
.../java/org/apache/helix/controller/rebalancer/waged/constraints/ConstraintBasedAlgorithm.java
Outdated
Show resolved
Hide resolved
.../java/org/apache/helix/controller/rebalancer/waged/constraints/ConstraintBasedAlgorithm.java
Outdated
Show resolved
Hide resolved
.../java/org/apache/helix/controller/rebalancer/waged/constraints/ConstraintBasedAlgorithm.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/org/apache/helix/controller/rebalancer/waged/constraints/HardConstraint.java
Outdated
Show resolved
Hide resolved
…alance (hard constraint) failures.
…alance (hard constraint) failures.
.../java/org/apache/helix/controller/rebalancer/waged/constraints/ConstraintBasedAlgorithm.java
Outdated
Show resolved
Hide resolved
…alance (hard constraint) failures.
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.
lgtm. thanks for working on this!
This PR has been approved by @junkaixue. Final Commit Message: We are enabling constraint level logging in the case when WAGED algorithm is not able to find the placement for a replica. The logging will be controlled via a flag which is enabled when the failure criteria is met, else is disabled. |
Issues
Fixes Enable logging detailed and specific error message for WAGED Rebalance failures #2828
Description
Currently, when WAGED rebalancer encounters failure due to hard constraint (say insufficient capacity), it does not specify which key and reason of the insufficient capacity. Currently details are logged as part of the DEBUG messages and we have to turning on DEBUG logging to gain insights, and then turn off the helix DEBUG logging after the triage.
In this PR, we are creating
ValidationResult
construct to better record the validation result details, which will be used produce a specific and detailed error message in case of Rebalance failure.Tests
Updated existing tests:
(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)