[jboss-jira] [JBoss JIRA] (JGRP-1431) GossipRouter drops members from the routing table
Guy Golan (JIRA)
jira-events at lists.jboss.org
Wed Feb 29 05:36:39 EST 2012
Guy Golan created JGRP-1431:
-------------------------------
Summary: GossipRouter drops members from the routing table
Key: JGRP-1431
URL: https://issues.jboss.org/browse/JGRP-1431
Project: JGroups
Issue Type: Bug
Affects Versions: 3.1
Reporter: Guy Golan
Assignee: Bela Ban
I have looked at GossipRouter.java and it seems like it has a bug that sometimes drops new members from the routing table.
The problem is caused by the methods: "removeEntry" and "handleConnect".
Specifically, the method "removeEntry" contains the following code fragment:
if(map.isEmpty()) {
routingTable.remove(group);
So, if "removeEntry" is executed and a concurrent "handleConnect" adds a member (to the same group) between "map.isEmpty()" and "routingTable.remove(group)" then this member will be dropped from the routing-table.
Note that, in this case the method "handleConnect" still sends "CONNECT_OK" to the client.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list