From defeef6fe43de476fc3ff08660feaa17a16931cd Mon Sep 17 00:00:00 2001 From: Karthik Kambatla Date: Fri, 27 Dec 2013 21:10:14 +0000 Subject: [PATCH] YARN-1481. Addendum patch to fix synchronization in AdminService git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1553738 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 33230d86f9..10e7326768 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 @@ private UserGroupInformation checkAcls(String method) throws YarnException { } } - private synchronized boolean isRMActive() { + private boolean isRMActive() { return HAServiceState.ACTIVE == rmContext.getHAServiceState(); }