[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-1657) IllegalStateException upon cluster fail-over
Howard Gao (JIRA)
jira-events at lists.jboss.org
Fri Jun 19 07:28:03 EDT 2009
[ https://jira.jboss.org/jira/browse/JBMESSAGING-1657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12472959#action_12472959 ]
Howard Gao commented on JBMESSAGING-1657:
-----------------------------------------
The fix:
In GroupMember.multicastConstrol, where ever a multicast message is not received be any member, we do a check on the member's status. If the member is actually dead, it can be safely ignored. the code is like:
if (!rsp.wasReceived())
{
if (!rsp.wasSuspected())
{
throw new IllegalStateException(this + " response not received from " + rsp.getSender() + " - there may be others");
}
}
where the rsp.wasSuspected() can be used to detected whether the member is really dead or not. (I consulted jgroup lead Bela Ban).
> IllegalStateException upon cluster fail-over
> --------------------------------------------
>
> Key: JBMESSAGING-1657
> URL: https://jira.jboss.org/jira/browse/JBMESSAGING-1657
> Project: JBoss Messaging
> Issue Type: Bug
> Affects Versions: 1.4.0.SP3.CP05, 1.4.0.SP3.CP07, 1.4.0.SP3.CP08
> Reporter: Justin Bertram
> Assignee: Howard Gao
> Fix For: 1.4.0.SP3.CP09, 1.4.5.GA
>
> Attachments: 127.0.0.1.log, 127.0.0.2.log, client.log, JmsTest.java
>
>
> I set up two cluster nodes like so:
> 1) unzipped fresh JBoss EAP 4.3 CP04
> 2) renamed <JBOSS_HOME>/server/default/deploy/jboss-messaging.sar/hsqldb-persistence-service.xml to hsqldb-persistence-service.xml.rej
> 3) copied <JBOSS_HOME>/docs/examples/jms/mysql-persistence-service.xml to <JBOSS_HOME>/server/default/deploy/jboss-messaging.sar
> 4) Modified the "Clustered" attribute to be "true" in <JBOSS_HOME>/server/default/deploy/jboss-messaging.sar/mysql-persistence-service.xml
> 5) copied <JBOSS_HOME>/docs/examples/jca/mysql-ds.xml to <JBOSS_HOME>/server/default/deploy and changed the jndi-name to "DefaultDS" and pointed it at my local MySQL
> 6) copied MySQL driver to <JBOSS_HOME>/server/default/lib
> 7) copied jgroups.jar from <JBOSS_HOME>/server/all/lib to <JBOSS_HOME>/server/default/lib
> 8) copied <JBOSS_HOME> to <JBOSS_HOME2>
> 9) Start first instance with "./run.sh -c default -b 127.0.0.1 -Djboss.messaging.ServerPeerID=1"
> 10) Start second instance with "./run.sh -c default -b 127.0.0.2 -Djboss.messaging.ServerPeerID=2"
> Then I ran the test (which is attached as JmsTest.java)
> -Start test client connecting to 127.0.0.1
> -Observe client log filling up with "."
> -Drop JBoss running on 127.0.0.1 (using kill -9 <pid>)
> -Client fails with org.jboss.jms.exception.MessagingJMSException (see log attached as client.log)
> -Observe java.lang.IllegalStateException on the 127.0.0.2 (attached as 127.0.0.2.log)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list