jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mete Atamel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCR-3340) GarbageCollector should ignore all NoSuchItemStateExceptions
Date Thu, 14 Jun 2012 09:29:42 GMT
Mete Atamel created JCR-3340:

             Summary: 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

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


View raw message