This is an automated email from the ASF dual-hosted git repository.
chetanm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new 28ae83c Delay emitting metric to avoid NPE (#4288)
28ae83c is described below
commit 28ae83cfb1bd07f55b12dc91b16f0e113dbfee2f
Author: Su <[email protected]>
AuthorDate: Thu Feb 14 11:57:01 2019 +0100
Delay emitting metric to avoid NPE (#4288)
Fixes #4285
---
.../org/apache/openwhisk/core/loadBalancer/CommonLoadBalancer.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/controller/src/main/scala/org/apache/openwhisk/core/loadBalancer/CommonLoadBalancer.scala
b/core/controller/src/main/scala/org/apache/openwhisk/core/loadBalancer/CommonLoadBalancer.scala
index 197e3d1..969c087 100644
---
a/core/controller/src/main/scala/org/apache/openwhisk/core/loadBalancer/CommonLoadBalancer.scala
+++
b/core/controller/src/main/scala/org/apache/openwhisk/core/loadBalancer/CommonLoadBalancer.scala
@@ -77,7 +77,7 @@ abstract class CommonLoadBalancer(config: WhiskConfig,
totalManagedActivationMemory.longValue)
}
- actorSystem.scheduler.schedule(0.seconds, 10.seconds)(emitHistogramMetric())
+ actorSystem.scheduler.schedule(10.seconds, 10.seconds)(emitHistogramMetric())
override def activeActivationsFor(namespace: UUID): Future[Int] =
Future.successful(activationsPerNamespace.get(namespace).map(_.intValue()).getOrElse(0))