Author: kfujino
Date: Tue Mar 22 05:41:49 2016
New Revision: 1736136
URL: http://svn.apache.org/viewvc?rev=1736136&view=rev
Log:
Add log of when received an unexpected messages.
Modified:
tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
Modified:
tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java?rev=1736136&r1=1736135&r2=1736136&view=diff
==============================================================================
---
tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
(original)
+++
tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
Tue Mar 22 05:41:49 2016
@@ -593,6 +593,10 @@ public abstract class AbstractReplicated
mapMemberAdded(mapmsg.getPrimary());
} else if (mapmsg.getMsgType() == MapMessage.MSG_INIT) {
memberAlive(mapmsg.getPrimary());
+ } else {
+ // other messages are ignored.
+ if (log.isInfoEnabled())
+ log.info("Message[" + mapmsg.getTypeDesc() + "] is
ignored.");
}
} catch (IOException x ) {
log.error("Unable to deserialize MapMessage.",x);
Modified: tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?rev=1736136&r1=1736135&r2=1736136&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Tue Mar 22 05:41:49 2016
@@ -198,6 +198,9 @@
<fix>
Avoid NPE when a proxy node failed to retrieve a backup entry.
(kfujino)
</fix>
+ <add>
+ Add log of when received an unexpected messages. (kfujino)
+ </add>
</changelog>
</subsection>
<subsection name="Other">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]