Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-3469

Thread interrupt may result in closed index files

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4.4, 2.5.3
    • Component/s: jackrabbit-core
    • Labels:
      None

      Description

      Interrupting a thread, which is currently performing I/O on Lucene index files, may result in closed index files. Jackrabbit versions prior to 2.4 didn't have that problem because only with the update of Lucene to 3.0.3 in Jackrabbit 2.4 the underlying default for the FSDirectory in Lucene changed from SimpleFSDirectory to NIOFSDirectory. The latter uses a FileChannel to perform concurrent read operations on a single channel, but because of the way how FileChannel is specified an interrupt will result in the FileChannel to be closed.

      This was also discussed on the Lucene mailing list. See: http://lucene.markmail.org/thread/ea7mj2kpdvyuesss

      1. JCR-3469-test.patch
        3 kB
        Marcel Reutegger
      2. JCR-3469.patch
        4 kB
        Marcel Reutegger
      3. JCR-3469.patch
        12 kB
        Marcel Reutegger
      4. JCR-3469-2.4.diff
        9 kB
        Martin Böttcher

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Marcel Reutegger
            Reporter:
            Marcel Reutegger
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development