Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4864

Add AsyncFSDirectory to work around Windows issues with NIOFS (Lucene 5.0 only)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 6.0
    • None
    • core/store
    • New

    Description

      On LUCENE-4848 a new directory implementation was proposed that uses AsyncFileChannel to make a sync-less directory implementation (only needed for IndexInput). The problem on Windows is that positional reads are impossible without overlapping (async) I/O, so FileChannel in the JDK has to syncronize all reads, because they consist of an atomic seek and atomic read.

      AsyncFSDirectoty would not have this issue, but has to take care of thread management, because you need a separate thread to get notified when the read is done. This involves overhead, but might still be better than the synchronization.

      Attachments

        1. LUCENE-4864.patch
          12 kB
          Uwe Schindler
        2. LUCENE-4864.patch
          12 kB
          Uwe Schindler

        Activity

          People

            uschindler Uwe Schindler
            mpoindexter Michael Poindexter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: