[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 25 09:22:01 EDT 2009


anonymous wrote : I don't think you need to cache any deletes that come in during compacting.


How do I know what deletes came during compacting if i don' t cache them?


Example:

File1: Record1
File2: record10
File3: Record100
File4: CurrentFile

I start compacting:

As I' m compacting, delete100 comes.

I write Delete100 on File4, but the data structures think that File3 has Record100. So, a negCount on File3 will be added.

At the end, you will have

File1: Record 1, Record 10, Record100

File4: deleteRecord100

File1 will not be reclaimable until you reload the journal and reclaulate te Positives and Negatives.

When I'm done compacting, I don' t know what deletes happened during compacting to fix this issue.


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

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



More information about the jboss-dev-forums mailing list