Author: kfujino Date: Tue Jun 21 06:21:40 2016 New Revision: 1749445 URL: http://svn.apache.org/viewvc?rev=1749445&view=rev Log: If the ping message has been received at the AbstractReplicatedMap#leftOver method, ensure that notify the member is alive than ignore it.
Modified: tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java tomcat/trunk/webapps/docs/changelog.xml Modified: tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java?rev=1749445&r1=1749444&r2=1749445&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java (original) +++ tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java Tue Jun 21 06:21:40 2016 @@ -616,7 +616,8 @@ public abstract class AbstractReplicated mapmsg.deserialize(getExternalLoaders()); if (mapmsg.getMsgType() == MapMessage.MSG_START) { mapMemberAdded(mapmsg.getPrimary()); - } else if (mapmsg.getMsgType() == MapMessage.MSG_INIT) { + } else if (mapmsg.getMsgType() == MapMessage.MSG_INIT + || mapmsg.getMsgType() == MapMessage.MSG_PING) { memberAlive(mapmsg.getPrimary()); } else { // other messages are ignored. Modified: tomcat/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1749445&r1=1749444&r2=1749445&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/changelog.xml (original) +++ tomcat/trunk/webapps/docs/changelog.xml Tue Jun 21 06:21:40 2016 @@ -102,6 +102,11 @@ <add> Add log message when the ping has timed-out. (kfujino) </add> + <fix> + If the ping message has been received at the + <code>AbstractReplicatedMap#leftOver</code> method, ensure that notify + the member is alive than ignore it. (kfujino) + </fix> </changelog> </subsection> <subsection name="Other"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org