You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/08/31 04:00:31 UTC

[GitHub] [druid] licl2014 opened a new issue #10334: The costs of segments that are marked to be dropped in CostBalancerStrategy shoud be computed

licl2014 opened a new issue #10334:
URL: https://github.com/apache/druid/issues/10334


   The costs of segments that are marked to be dropped in CostBalancerStrategy shoud be computed
   
   ### Affected Version
   
   0.12.3/0.19.0
   
   ### Description
   
   ```
       // plus the costs of segments that will be loaded
       cost += computeJointSegmentsCost(proposalSegment, server.getPeon().getSegmentsToLoad());
   
       // minus the costs of segments that are marked to be dropped
       cost -= computeJointSegmentsCost(proposalSegment, server.getPeon().getSegmentsMarkedToDrop());
   ```
   We minus the costs of segments that are marked to be dropped,but in CachingCostBalancerStrategy  we didn't do the same thing.
   
   ```
       // add segments that will be loaded to the cost
       cost += costCacheForLoadingSegments(server).computeCost(serverName, proposalSegment);
   
       if (server.getAvailableSize() <= 0) {
         return Double.POSITIVE_INFINITY;
       }
   ```
   


----------------------------------------------------------------
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.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org