Author: kfujino Date: Thu Jan 12 09:15:22 2017 New Revision: 1778400 URL: http://svn.apache.org/viewvc?rev=1778400&view=rev Log: Add log message that PING message has received beyond the timeout period.
Modified: tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java tomcat/trunk/java/org/apache/catalina/tribes/tipis/LocalStrings.properties 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=1778400&r1=1778399&r2=1778400&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java (original) +++ tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java Thu Jan 12 09:15:22 2017 @@ -619,9 +619,13 @@ public abstract class AbstractReplicated mapmsg.deserialize(getExternalLoaders()); if (mapmsg.getMsgType() == MapMessage.MSG_START) { mapMemberAdded(mapmsg.getPrimary()); - } else if (mapmsg.getMsgType() == MapMessage.MSG_INIT - || mapmsg.getMsgType() == MapMessage.MSG_PING) { + } else if (mapmsg.getMsgType() == MapMessage.MSG_INIT) { memberAlive(mapmsg.getPrimary()); + } else if (mapmsg.getMsgType() == MapMessage.MSG_PING) { + Member member = mapmsg.getPrimary(); + if (log.isInfoEnabled()) + log.info(sm.getString("abstractReplicatedMap.leftOver.pingMsg", member)); + memberAlive(member); } else { // other messages are ignored. if (log.isInfoEnabled()) Modified: tomcat/trunk/java/org/apache/catalina/tribes/tipis/LocalStrings.properties URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/tipis/LocalStrings.properties?rev=1778400&r1=1778399&r2=1778400&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/tribes/tipis/LocalStrings.properties (original) +++ tomcat/trunk/java/org/apache/catalina/tribes/tipis/LocalStrings.properties Thu Jan 12 09:15:22 2017 @@ -36,6 +36,7 @@ abstractReplicatedMap.unable.put=Unable abstractReplicatedMap.unsupport.operation=This operation is not valid on a replicated map abstractReplicatedMap.mapMemberAdded.nullMember=Notified member is not registered in the membership:{0}. abstractReplicatedMap.mapMemberAdded.added=Map member added:{0} +abstractReplicatedMap.leftOver.pingMsg=PING message has been received beyond the timeout period. The map member[{0}] might have been removed from the map membership. abstractReplicatedMap.leftOver.ignored=Message[{0}] is ignored. abstractReplicatedMap.mapMember.unavailable=Member[{0}] is not available yet. abstractReplicatedMap.ping.timeout=Member[{0}] in the Map[{1}] has timed-out in the ping processing. Modified: tomcat/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1778400&r1=1778399&r2=1778400&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/changelog.xml (original) +++ tomcat/trunk/webapps/docs/changelog.xml Thu Jan 12 09:15:22 2017 @@ -53,6 +53,14 @@ </fix> </changelog> </subsection> + <subsection name="Tribes"> + <changelog> + <add> + Add log message that PING message has received beyond the timeout + period. (kfujino) + </add> + </changelog> + </subsection> <subsection name="Other"> <changelog> <fix> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org