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.patch
        12 kB
        Marcel Reutegger
      2. JCR-3469.patch
        4 kB
        Marcel Reutegger
      3. JCR-3469-2.4.diff
        9 kB
        Martin Böttcher
      4. JCR-3469-test.patch
        3 kB
        Marcel Reutegger

        Activity

        Marcel Reutegger created issue -
        Marcel Reutegger made changes -
        Field Original Value New Value
        Attachment JCR-3469-test.patch [ 12555170 ]
        Marcel Reutegger made changes -
        Attachment JCR-3469.patch [ 12555174 ]
        Marcel Reutegger made changes -
        Attachment JCR-3469.patch [ 12555189 ]
        Alex Parvulescu made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.6 [ 12319480 ]
        Resolution Fixed [ 1 ]
        Marcel Reutegger made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Marcel Reutegger [ mreutegg ]
        Marcel Reutegger made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Martin Böttcher made changes -
        Attachment JCR-3469-2.4.diff [ 12563568 ]
        Marcel Reutegger made changes -
        Fix Version/s 2.4.4 [ 12323255 ]
        Jukka Zitting made changes -
        Fix Version/s 2.5.3 [ 12323296 ]
        Fix Version/s 2.6 [ 12319480 ]
        Jukka Zitting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development