lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-4848) Fix Directory implementations to use NIO2 APIs
Date Thu, 21 Mar 2013 10:05:15 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-4848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Uwe Schindler updated LUCENE-4848:
----------------------------------

    Attachment: LUCENE-4848.patch

The attached patch fixes the problem with stale files. The protected method should not take
FSIndexOutput (this especially adds a synthetic accessor method). Instead onClosedIndexOutput
simply gets the file name. I also added documentation.

You can now add your own BufferedIndexOutput subclass (e.g. in NIOFSDir based on channels)
and just have to take care on calling the protected method (which I dont really like..., it
may cause bugs if you dont take care of that - I would like to have some automatism).

I think the new patch is ready.
                
> Fix Directory implementations to use NIO2 APIs
> ----------------------------------------------
>
>                 Key: LUCENE-4848
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4848
>             Project: Lucene - Core
>          Issue Type: Task
>    Affects Versions: 5.0
>            Reporter: Michael Poindexter
>            Assignee: Uwe Schindler
>            Priority: Minor
>             Fix For: 5.0
>
>         Attachments: jdk7directory.zip, LUCENE-4848-MMapDirectory.patch, LUCENE-4848.patch,
LUCENE-4848.patch, LUCENE-4848.patch, LUCENE-4848.patch, LUCENE-4848.patch, LUCENE-4848.patch,
LUCENE-4848.patch, LUCENE-4848.patch, LUCENE-4848.patch.txt
>
>
> I have implemented 3 Directory subclasses using NIO2 API's (available on JDK7).  These
may be suitable for inclusion in a Lucene contrib module.
> See the mailing list at http://lucene.markmail.org/thread/lrv7miivzmjm3ml5 for more details
about this code and the advantages it provides.
> The code is attached as a zip to this issue.  I'll be happy to make any changes requested.
 I've included some minimal smoke tests, but any help in how to use the normal Lucene tests
to perform more thorough testing would be appreciated.

--
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


Mime
View raw message