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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...