Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50600
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 17 Jan 2011 11:26:56 +0000 (11:26 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 17 Jan 2011 11:26:56 +0000 (11:26 +0000)
Prevent ConcurrentModificationException when removing WAR via FarmWarDeployer

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1059881 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/ha/deploy/WarWatcher.java
webapps/docs/changelog.xml

index 3c63722..b74ffea 100644 (file)
@@ -96,7 +96,7 @@ public class WarWatcher {
             } else if (check == -1) {
                 listener.fileRemoved(info.getWar());
                 //no need to keep in memory
-                currentStatus.remove(info.getWar().getAbsolutePath());
+                i.remove();
             }
         }
 
index 423374c..ecde6fe 100644 (file)
       <add>
         Internationalise the log messages for the FarmWarDeployer. (markt)
       </add>
+      <fix>
+        <bug>50600</bug>: Prevent a <code>ConcurrentModificationException</code>
+        when removing a WAR file via the FarmWarDeployer. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Web applications">