You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Torgeir Veimo <to...@gmail.com> on 2018/04/03 09:07:32 UTC

Re: Jackrabbit oak: Does Garbage collection Happen automatically ?

Which default configuration are you using? the jackrabbit-oak standalone or
war file download?

On 30 March 2018 at 18:30, rajesh <ra...@skava.com> wrote:

> Hi,
>
> I am using jackrabbit oak ( 1.8.2 ). I asked the question regarding garbage
> collection but still no reply. I  found myself that I need to call
> fileStore.fullGC() and markSweepGarbageCollector.collectGarbage(false)
> methods for deleting the file from S3. But I changed some configurations
> for
> the GC  happen immediately after deleting the node corresponding to that
> binary file.
> But is this right ? Or else  Does garbage collection automatically happen
> with default configurations ?
>
> Thanks.
>
>
>
> --
> Sent from: http://jackrabbit.510166.n4.nabble.com/Jackrabbit-Users-
> f510167.html
>



-- 
-Tor

Re: Jackrabbit oak: Does Garbage collection Happen automatically ?

Posted by rajesh <ra...@skava.com>.
I am using jackrabbit-oak standalone. But not OSGI configuration. Creating
repository with following code.

S3DataStore  as a blob store.

segmentNodeStore = SegmentNodeStoreBuilders.builder(getFileStore()).build();
repository = new Jcr(new Oak(segmentNodeStore)).createRepository();

It seems I need to trigger GC from code. I got email from Michael Dürig

Thanks.






--
Sent from: http://jackrabbit.510166.n4.nabble.com/Jackrabbit-Users-f510167.html