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 2019/01/21 14:03:08 UTC
[GitHub] SugandhaAgrawal commented on a change in pull request #4219: Send
capacity,
system overload metrics for managed and blackbox invokers separately
SugandhaAgrawal commented on a change in pull request #4219: Send capacity, system overload metrics for managed and blackbox invokers separately
URL: https://github.com/apache/incubator-openwhisk/pull/4219#discussion_r249460807
##########
File path: tests/src/test/scala/org/apache/openwhisk/core/loadBalancer/test/ShardingContainerPoolBalancerTests.scala
##########
@@ -288,14 +300,19 @@ class ShardingContainerPoolBalancerTests
ShardingContainerPoolBalancer
.schedule(1, fqn, invokers, invokerSlots, 1, index = 0, step = 1)
.get
+ ._1
.toInt
}
result shouldBe expectedResult
// more schedules will result in randomized invokers, but the unhealthy and offline invokers should not be part
val bruteResult = (0 to 100).map { _ =>
- ShardingContainerPoolBalancer.schedule(1, fqn, invokers, invokerSlots, 1, index = 0, step = 1).get.toInt
+ ShardingContainerPoolBalancer
+ .schedule(1, fqn, invokers, invokerSlots, 1, index = 0, step = 1)
+ .get
+ ._1
+ .toInt
Review comment:
Thanks for the comments @markusthoemmes. Will work on them 👍
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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
With regards,
Apache Git Services