You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2013/03/21 23:39:16 UTC

[jira] [Comment Edited] (LUCENE-4864) Add AsyncFSDirectory to work around Windows issues with NIOFS (Lucene 5.0 only)

    [ https://issues.apache.org/jira/browse/LUCENE-4864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13609619#comment-13609619 ] 

Uwe Schindler edited comment on LUCENE-4864 at 3/21/13 10:37 PM:
-----------------------------------------------------------------

I would like to see a comparison between SimpleFSDir on Windows (or Linux) and this one. If its slower we can close this issue as won't fix and better dont't provide this directory at all. According to Michael, he just implemented what the Sun bug tracker suggested: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6265734 (see also LUCENE-753 and http://wiki.apache.org/lucene-java/SunJavaBugs)

Unfortunately I have no luceneutil working on windows, so I cannot test, too.
                
      was (Author: thetaphi):
    I would like to see a comparison between this one SimpleFSDir on Windows (or Linux) and this one. If its slower we can close this issue as won't fix and better dont't provide this directory at all. According to Michael, he just implemented what the Sun bug tracker suggested: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6265734 (see also LUCENE-753 and http://wiki.apache.org/lucene-java/SunJavaBugs)

Unfortunately I have no luceneutil working on windows, so I cannot test, too.
                  
> Add AsyncFSDirectory to work around Windows issues with NIOFS (Lucene 5.0 only)
> -------------------------------------------------------------------------------
>
>                 Key: LUCENE-4864
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4864
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/store
>    Affects Versions: 5.0
>            Reporter: Michael Poindexter
>         Attachments: LUCENE-4864.patch, LUCENE-4864.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org