From 0941b99c86e21e7ad7b53f536788bb266c8468a7 Mon Sep 17 00:00:00 2001 From: Chris Nauroth Date: Fri, 4 Apr 2014 09:22:03 +0000 Subject: [PATCH] HADOOP-10456. Bug in Configuration.java exposed by Spark (ConcurrentModificationException). Contributed by Nishkam Ravi. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1584575 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../src/main/java/org/apache/hadoop/conf/Configuration.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 59d947dfc6..805d485b38 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -362,6 +362,9 @@ Release 2.4.1 - UNRELEASED HADOOP-10455. When there is an exception, ipc.Server should first check whether it is an terse exception. (szetszwo) + HADOOP-10456. Bug in Configuration.java exposed by Spark + (ConcurrentModificationException). (Nishkam Ravi via cnauroth) + Release 2.4.0 - 2014-04-07 INCOMPATIBLE CHANGES diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java index 0312e54539..dc39629348 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java @@ -666,9 +666,9 @@ public Configuration(Configuration other) { } this.updatingResource = new HashMap(other.updatingResource); + this.finalParameters = new HashSet(other.finalParameters); } - this.finalParameters = new HashSet(other.finalParameters); synchronized(Configuration.class) { REGISTRY.put(this, null); }