Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3340

GarbageCollector should ignore all NoSuchItemStateExceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.5
    • None
    • jackrabbit-core
    • None

    Description

      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.

      Attachments

        1. JCR-3340.patch
          1.0 kB
          Mete Atamel

        Activity

          People

            Unassigned Unassigned
            meteatamel Mete Atamel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified