[ http://jira.jboss.com/jira/browse/JGRP-25?page=history ] Bela Ban resolved JGRP-25: --------------------------
Resolution: Done Fixed according to suggestion > ChannelClosedException does not always reconnect correctly > ---------------------------------------------------------- > > Key: JGRP-25 > URL: http://jira.jboss.com/jira/browse/JGRP-25 > Project: JGroups > Type: Bug > Reporter: Bela Ban > Assignee: Bela Ban > Fix For: 2.2.8 > > Original Estimate: 1 day > Remaining: 1 day > > ChannelClosedException does not always reconnect correctly > Version JGroups 2.7 > When a ChannelClosedException is encountered (legit > reasons), the sleep(1000) code below causes a race > condition which results in PullPushAdapter ignoring any > new messages. > The JChannel code calls the channelReconnected before > the sleep(1000) returns. This causes the > channelReconnected method to skip calling the start() > method. When the code after sleep() executes, the > receiver_thread is set to back to null thus causing > messages to be thrown out. Our workaround was to remove > the sleep code. > From PullPushAdapter.java: > public void channelReconnected(Address addr) { > if(receiver_thread == null) > start(); > } > and > catch(ChannelClosedException closed_ex) { > // The sleep will cause problems if the channel > reconnects in under 1000 mills. > Util.sleep(1000); > receiver_thread=null; > break; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development