Author: kfujino
Date: Thu Jan 12 09:20:29 2017
New Revision: 1778401
URL: http://svn.apache.org/viewvc?rev=1778401&view=rev
Log:
When a PING message that beyond the time-out period has been received, make
sure that valid member is added to the map membership.
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=1778401&r1=1778400&r2=1778401&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:20:29 2017
@@ -625,7 +625,10 @@ public abstract class AbstractReplicated
Member member = mapmsg.getPrimary();
if (log.isInfoEnabled())
log.info(sm.getString("abstractReplicatedMap.leftOver.pingMsg", member));
- memberAlive(member);
+ State state = (State) mapmsg.getValue();
+ if (state.isAvailable()) {
+ memberAlive(member);
+ }
} else {
// other messages are ignored.
if (log.isInfoEnabled())
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL:
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1778401&r1=1778400&r2=1778401&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Thu Jan 12 09:20:29 2017
@@ -59,6 +59,10 @@
Add log message that PING message has received beyond the timeout
period. (kfujino)
</add>
+ <fix>
+ When a PING message that beyond the time-out period has been received,
+ make sure that valid member is added to the map membership. (kfujino)
+ </fix>
</changelog>
</subsection>
<subsection name="Other">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]