You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by "ngngwr (via GitHub)" <gi...@apache.org> on 2025/11/27 04:49:26 UTC

[I] Integer Overflow with WAGED Computation [helix]

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: reviews-unsubscribe@helix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


Re: [I] Integer Overflow with WAGED Computation [helix]

Posted by "ngngwr (via GitHub)" <gi...@apache.org>.
ngngwr closed issue #3084: Integer Overflow  with WAGED Computation
URL: https://github.com/apache/helix/issues/3084


-- 
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: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org