You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by va...@apache.org on 2017/08/30 20:15:43 UTC
[18/50] [abbrv] hadoop git commit: YARN-6563
ConcurrentModificationException in TimelineCollectorManager while stopping RM
(Contributed by Haibo Chen via Vrushali C)
YARN-6563 ConcurrentModificationException in TimelineCollectorManager while stopping RM (Contributed by Haibo Chen via Vrushali C)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/8a5d2af2
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/8a5d2af2
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/8a5d2af2
Branch: refs/heads/YARN-5355_branch2
Commit: 8a5d2af219ed8c6b757dc8a641ca72f4fcf9962c
Parents: 1ab397c
Author: Vrushali Channapattan <vr...@apache.org>
Authored: Tue May 9 11:15:24 2017 -0700
Committer: Varun Saxena <va...@apache.org>
Committed: Thu Aug 31 01:10:04 2017 +0530
----------------------------------------------------------------------
.../timelineservice/collector/TimelineCollectorManager.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/8a5d2af2/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice/src/main/java/org/apache/hadoop/yarn/server/timelineservice/collector/TimelineCollectorManager.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice/src/main/java/org/apache/hadoop/yarn/server/timelineservice/collector/TimelineCollectorManager.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice/src/main/java/org/apache/hadoop/yarn/server/timelineservice/collector/TimelineCollectorManager.java
index 8ef9b43..07cbb2b 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice/src/main/java/org/apache/hadoop/yarn/server/timelineservice/collector/TimelineCollectorManager.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice/src/main/java/org/apache/hadoop/yarn/server/timelineservice/collector/TimelineCollectorManager.java
@@ -219,8 +219,10 @@ public class TimelineCollectorManager extends AbstractService {
@Override
protected void serviceStop() throws Exception {
if (collectors != null && collectors.size() > 1) {
- for (TimelineCollector c : collectors.values()) {
- c.serviceStop();
+ synchronized (collectors) {
+ for (TimelineCollector c : collectors.values()) {
+ c.serviceStop();
+ }
}
}
// stop the flusher first
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org