You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Anu Madan <AM...@TechMahindra.com> on 2013/03/25 09:04:12 UTC

Need help: Jackrabbit file deletion doesnot free disk space.

Hi,

We are using Jackrabbit with Derby database as file system.
We are deleting nodes using the jcr api and the nodes are deleted successfully. Since we get
an ItemNotFoundException when we fetch them thereafter.

But if we check the disk space, it still shows the same amount of space occupied.
We are facing space issues on our server and are trying to delete old files to overcome the
issue.

Please advice on the way, the space can be recovered on file deletion from jackrabbit.
Also, please share how the deletion mechanism works, for knowledge purposes.

Thanks.

Regards,
Anu Madan | Team Lead
Email: anu.madan@techmahindra.com<ma...@techmahindra.com>


============================================================================================================================Disclaimer:  This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================

Re: Need help: Jackrabbit file deletion doesnot free disk space.

Posted by Bert Geens <be...@lair.be>.
Anu Madan <AM...@TechMahindra.com> writes:

> Thanks Jukka.
>
> I have referred to the link provided by you. 
> I am using rmi repository (URLRemoteRepository) and while implementing the Data Store Garbage Collection, I need JackrabbitRepository.
> Am now stuck with the following issue:
>
> 'java.lang.ClassCastException: org.apache.jackrabbit.rmi.repository.URLRemoteRepository cannot be cast to org.apache.jackrabbit.api.JackrabbitRepository' 
>
> I had a look at the class hierarchy but cannot find any way out.
>
> Regards, 
> Anu Madan
>

https://issues.apache.org/jira/browse/JCR-1496 might be helpful.

Imho that is quite a lot of hoops to jump through to get at a
SessionImpl object though and without that bug report I might not have
figured it out either.

Kind regards,

Bert Geens

RE: Need help: Jackrabbit file deletion doesnot free disk space.

Posted by Anu Madan <AM...@TechMahindra.com>.
Thanks Jukka.

I have referred to the link provided by you. 
I am using rmi repository (URLRemoteRepository) and while implementing the Data Store Garbage Collection, I need JackrabbitRepository.
Am now stuck with the following issue:

'java.lang.ClassCastException: org.apache.jackrabbit.rmi.repository.URLRemoteRepository cannot be cast to org.apache.jackrabbit.api.JackrabbitRepository' 

I had a look at the class hierarchy but cannot find any way out.

Regards, 
Anu Madan


-----Original Message-----
From: Jukka Zitting [mailto:jukka.zitting@gmail.com] 
Sent: Monday, March 25, 2013 1:37 PM
To: Jackrabbit Users; Anu Madan
Subject: Re: Need help: Jackrabbit file deletion doesnot free disk space.

Hi,

On Mon, Mar 25, 2013 at 10:04 AM, Anu Madan <AM...@techmahindra.com> wrote:
> Please advice on the way, the space can be recovered on file deletion from jackrabbit.
> Also, please share how the deletion mechanism works, for knowledge purposes.

See my response from last week: http://markmail.org/message/wfes5wye3gsd6qbn

BR,

Jukka Zitting

============================================================================================================================Disclaimer:  This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================

Re: Need help: Jackrabbit file deletion doesnot free disk space.

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Mon, Mar 25, 2013 at 10:04 AM, Anu Madan <AM...@techmahindra.com> wrote:
> Please advice on the way, the space can be recovered on file deletion from jackrabbit.
> Also, please share how the deletion mechanism works, for knowledge purposes.

See my response from last week: http://markmail.org/message/wfes5wye3gsd6qbn

BR,

Jukka Zitting