[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Some feedback on latest journal changes

clebert.suconic@jboss.com do-not-reply at jboss.com
Thu Jul 31 13:44:38 EDT 2008


"timfox" wrote : "clebert.suconic at jboss.com" wrote : 
  |   | 
  |   | The first attempt was to record the total elements but a file could be reclaimed and part of the transaction gone, 
  |   | 
  | 
  | How can a file be reclaimed if it it contains transactional records that haven't been committed or rolled back? We should never allow *part* of a transaction to disappear.
  | 

I didn't change anything on reclaiming. Reclaiming is working the same way as aways.

This is jut how I validate if the transaction has all the records it was supposed to have.

When you are reloading a transaction, you need to verify you have the exact same number of records as before. If the transactional was legally committed part of it could have been legally reclaimed and that doesn't mean the transaction is unhealthy. 

If we didn't allow part of a committed transaction be reclaimed, reclaiming would never delete any files if someone uses transactions. (a transaction could be spread between multiple files).


"Tim Fox" wrote : 
  | I was referring to the debug() method not the static trace method 
  | 

That method is public, and part of TestableJournal. It prints the Reclaiming Status on a StringBuffer. I use it every time I investigate a bug on the journal, on testcases.

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

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



More information about the jboss-dev-forums mailing list