Hi all,
I'm setting up an Oak (1.6.6) repository with a DocumentNodeStore connected
to MongoDB. I have a question about the garbage collector. In the
documentation about the Oak Document storage (here
<https://jackrabbit.apache.org/oak/docs/nodestore/documentmk.html#oak-document-storage>)
is mentioned only how to run the *revision gc*. But what about the *blob gc*?
I've seen that there are three types of garbage collectors: version,
journal and blob. Do I have to call them all? If yes, there's a specific
order that I should keep?
For my trial I did this:

documentNodeStore.getVersionGarbageCollector().gc(1, TimeUnit.DAYS);
documentNodeStore.getJournalGarbageCollector().gc(1, TimeUnit.DAYS);
long oneDay = TimeUnit.SECONDS.convert(1, TimeUnit.DAYS);
documentNodeStore.createBlobGarbageCollector(oneDay, ClusterRepositoryInfo.
getOrCreateId(documentNodeStore)).collectGarbage(false);

Is it correct?

Marco.

Reply via email to