From 05ff546482a53f3f7f145a9d9058e84c50e5187b Mon Sep 17 00:00:00 2001 From: Karthik Kambatla Date: Fri, 27 Dec 2013 21:11:12 +0000 Subject: [PATCH] YARN-1481. Addendum patch to fix synchronization in AdminService git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1553741 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/hadoop/yarn/server/resourcemanager/AdminService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java index 33230d86f9b..10e73267680 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java @@ -174,7 +174,7 @@ public class AdminService extends AbstractService implements } } - private synchronized boolean isRMActive() { + private boolean isRMActive() { return HAServiceState.ACTIVE == rmContext.getHAServiceState(); }