[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Question about Transaction timeouts and Journal

clebert.suconic@jboss.com do-not-reply at jboss.com
Thu Jul 24 08:23:51 EDT 2008


The problem with a timeout during the Commit is, I have no guarantees if the Commit will make to the file or not.

As libaio don't have an abort method (Actually it does.. but its implementation is empty.. it's just a stub for future versions), on that situation you might have a Rollback arriving after the Commit. If you reload the Journal at that point you might get duplicates.

So.. what I'm doing is treating that as an unlikely exception.

So.. what I'm doing is.. if a Rollback arrives after a Commit, I will ignore that load, and restart the load but ignoring this exceptional situation. 

A timeout during commit will be an unlikely event but I would prefer to have the exception code for that

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

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



More information about the jboss-dev-forums mailing list