You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Mete Atamel (JIRA)" <ji...@apache.org> on 2012/06/14 11:35:42 UTC

[jira] [Updated] (JCR-3340) GarbageCollector should ignore all NoSuchItemStateExceptions

     [ https://issues.apache.org/jira/browse/JCR-3340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mete Atamel updated JCR-3340:
-----------------------------

    Attachment: JCR-3340.patch

Patch against JR/trunk
                
> GarbageCollector should ignore all NoSuchItemStateExceptions
> ------------------------------------------------------------
>
>                 Key: JCR-3340
>                 URL: https://issues.apache.org/jira/browse/JCR-3340
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.5
>            Reporter: Mete Atamel
>         Attachments: JCR-3340.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> When GarbageCollector goes through nodes, it can encounter NoSuchItemStateException or PathNotFoundException if a node has been deleted or moved in the meantime. GarbageCollector can safely ignore these exceptions. It tries to do so in some cases but not all.
> For example, Listener#onEvent method in GarbageCollector catches PathNotFoundException and it also catches the generic Exception. The latter is problematic because a NoSuchItemStateException can be thrown by Session#getItem call and currently, GarbageCollector treats that as a valid exception when it should just ignore it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira