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

[GitHub] [openwhisk] Remumu opened a new issue #4892: A question about conditional statement in loadBalancer

Remumu opened a new issue #4892:
URL: https://github.com/apache/openwhisk/issues/4892


   Hello,
   I'd like to ask this small question I found while looking at the loadbalancer code below.
   
   https://github.com/apache/openwhisk/blob/master/core/controller/src/main/scala/org/apache/openwhisk/core/loadBalancer/ShardingContainerPoolBalancer.scala#L417
   
   According to my understanding and comment, it seems to be a conditional statement to know whether it have gone through all the invokers or not. However, stepsDone starts counting from zero, and the numInvokers initializes with invokers.size. I think the condition should be 
   stepsDone + 1 == numInvokers .
   Could you explain what is the meaning of that condition?
   Thank you!


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