diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index 2719e3efdf..82463d3db9 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -227,6 +227,9 @@ Release 2.1.2 - UNRELEASED MAPREDUCE-5525. Increase timeout of TestDFSIO.testAppend and TestMRJobsWithHistoryService.testJobHistoryData. (Chuan Liu via cnauroth) + MAPREDUCE-5513. ConcurrentModificationException in JobControl (Robert + Parker via jlowe) + Release 2.1.1-beta - 2013-09-23 INCOMPATIBLE CHANGES @@ -1409,6 +1412,9 @@ Release 0.23.10 - UNRELEASED MAPREDUCE-5504. mapred queue -info inconsistent with types (Kousuke Saruta via tgraves) + MAPREDUCE-5513. ConcurrentModificationException in JobControl (Robert + Parker via jlowe) + Release 0.23.9 - 2013-07-08 INCOMPATIBLE CHANGES diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/jobcontrol/JobControl.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/jobcontrol/JobControl.java index 3c3e362ae2..ca4857ecb7 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/jobcontrol/JobControl.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/jobcontrol/JobControl.java @@ -79,13 +79,11 @@ public JobControl(String groupName) { this.runnerState = ThreadState.READY; } - private static List toList( + synchronized private static List toList( LinkedList jobs) { ArrayList retv = new ArrayList(); - synchronized (jobs) { - for (ControlledJob job : jobs) { - retv.add(job); - } + for (ControlledJob job : jobs) { + retv.add(job); } return retv; }