diff --git a/core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/queue/MemoryQueue.scala b/core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/queue/MemoryQueue.scala index 373639ae590..e8b1a6fa61e 100644 --- a/core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/queue/MemoryQueue.scala +++ b/core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/queue/MemoryQueue.scala @@ -17,7 +17,12 @@ import org.apache.openwhisk.core.etcd.EtcdKV.ContainerKeys.containerPrefix import org.apache.openwhisk.core.etcd.EtcdKV.{ContainerKeys, QueueKeys, ThrottlingKeys} import org.apache.openwhisk.core.scheduler.SchedulerEndpoints import org.apache.openwhisk.core.scheduler.grpc.{GetActivation, ActivationResponse => GetActivationResponse} -import org.apache.openwhisk.core.scheduler.message.{ContainerCreation, ContainerDeletion, FailedCreationJob, SuccessfulCreationJob} +import org.apache.openwhisk.core.scheduler.message.{ + ContainerCreation, + ContainerDeletion, + FailedCreationJob, + SuccessfulCreationJob +} import org.apache.openwhisk.core.service._ import org.apache.openwhisk.core.{ConfigKeys, WhiskConfig} import org.apache.openwhisk.http.Messages.{namespaceLimitUnderZero, tooManyConcurrentRequests} @@ -29,7 +34,7 @@ import scala.annotation.tailrec import scala.collection.immutable.Queue import scala.collection.mutable import scala.concurrent.duration._ -import scala.concurrent.{ExecutionContextExecutor, Future, Promise, duration} +import scala.concurrent.{duration, ExecutionContextExecutor, Future, Promise} import scala.language.postfixOps import scala.util.{Failure, Success} diff --git a/tests/src/test/scala/org/apache/openwhisk/core/scheduler/queue/test/MemoryQueueFlowTests.scala b/tests/src/test/scala/org/apache/openwhisk/core/scheduler/queue/test/MemoryQueueFlowTests.scala index 6aa97ad1505..16250661218 100644 --- a/tests/src/test/scala/org/apache/openwhisk/core/scheduler/queue/test/MemoryQueueFlowTests.scala +++ b/tests/src/test/scala/org/apache/openwhisk/core/scheduler/queue/test/MemoryQueueFlowTests.scala @@ -6,16 +6,16 @@ import akka.testkit.{TestActor, TestFSMRef, TestProbe} import com.sksamuel.elastic4s.http.{search => _} import org.apache.openwhisk.common.GracefulShutdown import org.apache.openwhisk.core.connector.ContainerCreationError.{NonExecutableActionError, WhiskError} -import org.apache.openwhisk.core.connector.{ContainerCreationMessage} +import org.apache.openwhisk.core.connector.ContainerCreationMessage import org.apache.openwhisk.core.entity._ import org.apache.openwhisk.core.etcd.EtcdClient -import org.apache.openwhisk.core.scheduler.container.{ +import org.apache.openwhisk.core.scheduler.grpc.ActivationResponse +import org.apache.openwhisk.core.scheduler.message.{ ContainerCreation, ContainerDeletion, FailedCreationJob, SuccessfulCreationJob } -import org.apache.openwhisk.core.scheduler.grpc.ActivationResponse import org.apache.openwhisk.core.scheduler.queue.MemoryQueue.checkToDropStaleActivation import org.apache.openwhisk.core.scheduler.queue._ import org.apache.openwhisk.core.service._ diff --git a/tests/src/test/scala/org/apache/openwhisk/core/scheduler/queue/test/MemoryQueueTests.scala b/tests/src/test/scala/org/apache/openwhisk/core/scheduler/queue/test/MemoryQueueTests.scala index 159502e7356..187f9913c7c 100644 --- a/tests/src/test/scala/org/apache/openwhisk/core/scheduler/queue/test/MemoryQueueTests.scala +++ b/tests/src/test/scala/org/apache/openwhisk/core/scheduler/queue/test/MemoryQueueTests.scala @@ -27,8 +27,8 @@ import org.apache.openwhisk.core.entity._ import org.apache.openwhisk.core.entity.size._ import org.apache.openwhisk.core.etcd.EtcdKV.ContainerKeys.{existingContainers, inProgressContainer} import org.apache.openwhisk.core.etcd._ -import org.apache.openwhisk.core.scheduler.container.{ContainerCreation, FailedCreationJob, SuccessfulCreationJob} import org.apache.openwhisk.core.scheduler.grpc.{GetActivation, ActivationResponse => GetActivationResponse} +import org.apache.openwhisk.core.scheduler.message.{ContainerCreation, FailedCreationJob, SuccessfulCreationJob} import org.apache.openwhisk.core.scheduler.queue.MemoryQueue.checkToDropStaleActivation import org.apache.openwhisk.core.scheduler.queue._ import org.apache.openwhisk.core.service._ @@ -1713,7 +1713,8 @@ class MemoryQueueTests .newBuilder() .setKey(ByteString.copyFromUtf8(key)) .setValue(ByteString.copyFromUtf8(value)) - .build()).build() + .build()) + .build() // find the callbacks which has the proper prefix for the given key watchCallbackMap.filter(callback => key.startsWith(callback._1)).foreach { callback =>