[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Why do messages destined for paging not get assigned mes

clebert.suconic@jboss.com do-not-reply at jboss.com
Mon Sep 22 10:49:00 EDT 2008


yes.. there is a reason.

If you restart the server, the IDSequence (LastID) is captured from the Journal. After restart a producer would be generating duplicated IDs.

My first option to fix that was to read the last page only, but then I realized that under load you could have those IDs recorded out of order (due to transactions for instance)

The best option then was to not generated IDs at all while on Paging. Paging is a buffer working as a client-producer, so that wasn't a problem.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178081#4178081

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178081



More information about the jboss-dev-forums mailing list