Closed himanshukandwal closed 2 weeks ago
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
Description
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
[x] The following tests are written for this issue: Updated existing tests:
TestConstraintBasedAlgorithm.java
TestFaultZoneAwareConstraint.java
TestNodeCapacityConstraint.java
TestNodeMaxPartitionLimitConstraint.java
TestPartitionActivateConstraint.java
TestReplicaActivateConstraint.java
TestSamePartitionOnInstanceConstraint.java
TestValidGroupTagConstraint.java
The following is the result of the "mvn test" command on the appropriate module: