hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rake...@apache.org
Subject [28/50] [abbrv] hadoop git commit: YARN-5809. AsyncDispatcher possibly invokes multiple shutdown threads when handling exception (Jian He via Varun Saxena)
Date Wed, 02 Nov 2016 17:39:07 GMT
YARN-5809. AsyncDispatcher possibly invokes multiple shutdown threads when handling exception
(Jian He via Varun Saxena)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/07ab89e8
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/07ab89e8
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/07ab89e8

Branch: refs/heads/HDFS-10285
Commit: 07ab89e8bb3f647cef4f80f39237169a0c6a8520
Parents: 0c49f73
Author: Varun Saxena <varunsaxena@apache.org>
Authored: Tue Nov 1 04:19:00 2016 +0530
Committer: Varun Saxena <varunsaxena@apache.org>
Committed: Tue Nov 1 04:37:03 2016 +0530

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/yarn/event/AsyncDispatcher.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/07ab89e8/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/event/AsyncDispatcher.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/event/AsyncDispatcher.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/event/AsyncDispatcher.java
index df542ed..42a6819 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/event/AsyncDispatcher.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/event/AsyncDispatcher.java
@@ -195,6 +195,7 @@ public class AsyncDispatcher extends AbstractService implements Dispatcher
{
       if (exitOnDispatchException
           && (ShutdownHookManager.get().isShutdownInProgress()) == false
           && stopped == false) {
+        stopped = true;
         Thread shutDownThread = new Thread(createShutDownThread());
         shutDownThread.setName("AsyncDispatcher ShutDown handler");
         shutDownThread.start();


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message