https://issues.apache.org/bugzilla/show_bug.cgi?id=47419
Summary: r757582 causes a regression for Tribes ReplicatedMap Product: Tomcat 6 Version: 6.0.20 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Cluster AssignedTo: dev@tomcat.apache.org ReportedBy: rf...@apache.org I have a simple program to test the function provided by Tomcat tribes: public static void main(String[] args) throws Exception { //create a channel GroupChannel channel = new GroupChannel(); McastService mcastService = (McastService)channel.getMembershipService(); mcastService.setPort(MULTICAST_PORT); mcastService.setAddress(MULTICAST_ADDRESS); InetAddress localhost = InetAddress.getLocalHost(); // REVIEW: In my case, there are multiple IP addresses // One for the WIFI and the other one for VPN. For some reason the VPN one doesn't support // Multicast // mcastService.setBind("192.168.1.100"); channel.start(Channel.DEFAULT); org.apache.catalina.tribes.tipis.ReplicatedMap map = new org.apache.catalina.tribes.tipis.ReplicatedMap(null, channel, 50, "01", null); map.put(UUID.randomUUID().toString(), localhost.getHostAddress()); for (int i = 0; i < 4; i++) { Thread.sleep(3000); System.out.println(localhost + ": " + map.keySet()); } for (Object e : map.entrySetFull()) { Map.Entry en = (Map.Entry)e; org.apache.catalina.tribes.tipis.AbstractReplicatedMap.MapEntry entry = (org.apache.catalina.tribes.tipis.AbstractReplicatedMap.MapEntry)en.getValue(); System.out.println(entry); } map.breakdown(); channel.stop(Channel.DEFAULT); } If I run this programs on the same machine, I expect to see one entry per process. It works with tribes 6.0.18 but it fails in 6.0.20. Looking into the changelog, I found the following change is the cause of the problem. Revision: 757582 Author: rjung Date: 4:01:31 PM, Monday, March 23, 2009 Message: Any cluster node should ignore its own heartbeat messages. Backport of r755302 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=755302 ). ---- Modified : /tomcat/tc6.0.x/trunk/STATUS.txt Modified : /tomcat/tc6.0.x/trunk/java/org/apache/catalina/tribes/membership/McastServiceImpl.java Modified : /tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml socket.setLoopbackMode(true) which disables the loopback. If I change the flag in debugger to false, then it works as in 6.0.18. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org