if primary member disappears, remove the entry in the hashmap
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 9 Aug 2007 18:47:22 +0000 (18:47 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 9 Aug 2007 18:47:22 +0000 (18:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@564337 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java

index 827ec18..13a11af 100644 (file)
@@ -716,6 +716,8 @@ public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements
                 } catch (ChannelException x) {
                     log.error("Unable to relocate[" + entry.getKey() + "] to a new backup node", x);
                 }
+            } else if (member.equals(entry.getPrimary())) {
+                entry.setPrimary(null);
             } //end if
         } //while
     }