From 6d80b9bc3ff3ba8073e3faf64551b9109d2aa2ad Mon Sep 17 00:00:00 2001 From: bibinchundatt Date: Tue, 11 Jun 2019 22:49:21 +0530 Subject: [PATCH] YARN-9594. Fix missing break statement in ContainerScheduler#handle. Contributed by lujie. --- .../containermanager/scheduler/ContainerScheduler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/scheduler/ContainerScheduler.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/scheduler/ContainerScheduler.java index 854ad532bc..3a6d29635b 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/scheduler/ContainerScheduler.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/scheduler/ContainerScheduler.java @@ -190,6 +190,7 @@ public void handle(ContainerSchedulerEvent event) { startPendingContainers(maxOppQueueLength <= 0); metrics.setQueuedContainers(queuedOpportunisticContainers.size(), queuedGuaranteedContainers.size()); + break; default: LOG.error("Unknown event arrived at ContainerScheduler: " + event.toString());