ngngwr opened a new issue, #3084:
URL: https://github.com/apache/helix/issues/3084
### Describe the bug
Waged computation fails with capacity not available issue when the total
capacity of instances overflow the integer limit
### To Reproduce
1. Create 10 instances with
```
"mapFields" : {
"INSTANCE_CAPACITY_MAP": {
"DISK": "300000000"
}
},
```
2. Create one resource to be rebalanced using WAGED
### Expected behavior
Rebalance Failure with capacity issues for the capacity param breaching
integer limit
```
org.apache.helix.HelixRebalanceException: The cluster does not have enough
DISK capacity for all partitions. Failure Type: FAILED_TO_CALCULATE
at
org.apache.helix.controller.rebalancer.waged.constraints.ConstraintBasedAlgorithm.calculate(ConstraintBasedAlgorithm.java:82)
~[helix-core-1.4.4-SNAPSHOT.jar:1.4.4-SNAPSHOT]
at
org.apache.helix.controller.rebalancer.util.WagedRebalanceUtil.calculateAssignment(WagedRebalanceUtil.java:50)
~[helix-core-1.4.4-SNAPSHOT.jar:1.4.4-SNAPSHOT]
at
org.apache.helix.controller.rebalancer.waged.PartialRebalanceRunner.doPartialRebalance(PartialRebalanceRunner.java:164)
~[helix-core-1.4.4-SNAPSHOT.jar:1.4.4-SNAPSHOT]
at
org.apache.helix.controller.rebalancer.waged.PartialRebalanceRunner.lambda$partialRebalance$0(PartialRebalanceRunner.java:104)
~[helix-core-1.4.4-SNAPSHOT.jar:1.4.4-SNAPSHOT]
at java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
~[?:?]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
~[?:?]
```
### Additional context
Add any other context about the problem here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]