[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Failover & Paiging...
clebert.suconic@jboss.com
do-not-reply at jboss.com
Thu Jan 8 22:38:21 EST 2009
The DuplicateIDCache will not work:
- The MessageID lookup could fail in two circunstances:
I - on deliverReplicated, where we need to temporarily remove the messages from the Queue and place it on deliveringRefs.
II - On replicating acknoledgement... as I could fail
On I, we can't really add anything to duplicateIDCache, as the ID wasn't even delivered yet.
I have created a Branch with my current changes:
https://svn.jboss.org/repos/messaging/branches/Branch_Failover_Page
And PagingfailoverTest will pass with this Hack on QueueImpl:
// This is a temporary hack, for the temporary branch only
| for (int i = 0; i < 10; i++)
| {
| System.out.println("Retry " + i);
| Thread.sleep(100);
|
| ref = removeReferenceWithID(id, false);
|
| if (ref != null)
| {
| System.out.println("Finally found it:");
| break;
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200477#4200477
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200477
More information about the jboss-dev-forums
mailing list