[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Journal Cleanup and Journal Compactor

clebert.suconic@jboss.com do-not-reply at jboss.com
Sun Jul 5 10:35:33 EDT 2009


My brain can't stop working... even while sleeping :-)


Since we don't have the transaction summary any more (only number of records at current file per transaction), Cleanup is really easy (piece of cake).


We can just compact an individual file.

- Open a new file (getting it from the file cache if available).
- Add the live records. (don't add already deleted records).
- If there are delete records pointing to previous files, keep all the delete records.
- If there are pending transactions, also keep them.
- Do the same rename schema as done on the compacting

At the end you removed the linked-list for a given file.


I will provide more details for this on monday. I just wanted to register my thoughts somewhere at the moment.

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

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



More information about the jboss-dev-forums mailing list