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