[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Journal Clean up / Compactor (Repost)

clebert.suconic@jboss.com do-not-reply at jboss.com
Wed Feb 11 12:15:45 EST 2009


"Tim" wrote : Why would you need to update the file on disk? If you update in memory, then the files get deleted, so they won't get reloaded... What am I missing here?


Take my initial example in consideration:



  | f1: A1, A2 (A2 won't be deleted for a while)
  | 
  | f2: D1, A3, A4
  | 
  | f3: D3, D4 A5 A6
  | 
  | f4: D5, D6, A7, a8
  | 
  | f5: d7, d8, A9, A10 
  | ....
  | 
  | f1000: d998, d999, a1000, a1001
  | 
  | 

You have 1000 hanging on A2. So what I need to do on the above example is to phisically update f1, so f1 will be:

f1: A2   (There is no more A1 on the file).


And remove the memory dependency between f1 and f2.


After I do that, 999 files will be reclaimed or deleted.


If I don't update F1, during reload A1 would appear back, as the delete D1 is gone with the file.

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

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



More information about the jboss-dev-forums mailing list