From 6b47a7fb8eaf0659c4ca478d72f4019912942e5d Mon Sep 17 00:00:00 2001 From: Rohith Sharma K S Date: Thu, 24 Nov 2016 12:18:38 +0530 Subject: [PATCH] YARN-5920. Fix deadlock in TestRMHA.testTransitionedToStandbyShouldNotHang. Contributed by Varun Saxena. (cherry picked from commit e15c20edba1e9a23475ee6a4dfbadbdb8c1f668a) --- .../apache/hadoop/yarn/server/resourcemanager/TestRMHA.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMHA.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMHA.java index 905a42ce72b..df1cdb551e3 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMHA.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMHA.java @@ -463,8 +463,7 @@ public class TestRMHA { MemoryRMStateStore memStore = new MemoryRMStateStore() { @Override - public synchronized void updateApplicationState( - ApplicationStateData appState) { + public void updateApplicationState(ApplicationStateData appState) { notifyStoreOperationFailed(new StoreFencedException()); } };