[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
Thu Jun 11 13:02:56 EDT 2009


anonymous wrote : It then opens the old files F0..F5 loads the wanted records into memory in blocks and copies them to the new files.


This is what I'm calling as moving here. However. when you move them to the new file.. the new file will also be on the top of the list... so the order could change.

If you really want phisicalOrder == logicalOrder, I could open a "new-file" at an earlier position. However during the write time... you will have two files being written.. so the disk head will be jumping back and forth these two poistions.

Besides.. the interchanged example would still suffer if you can't change phisical order. Unless you also compact the full files in between. (what would be a waste of processing).

I would still do the Move-operation, as I could have the transactional control within the journal files.

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

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



More information about the jboss-dev-forums mailing list