lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varun Thacker (JIRA)" <>
Subject [jira] [Commented] (LUCENE-2795) Genericize DirectIOLinuxDir -> UnixDir
Date Wed, 06 Jul 2011 07:18:16 GMT


Varun Thacker commented on LUCENE-2795:

Hey Varun - saw you asked for someone with a mac to run some code for you in IRC but you popped
off before I saw - what do you need? Just apply the patch and run the tests?

This patch will apply to the LUCENE2793 branch. Othewise in file : lucene/contrib/misc/src/java/org/apache/lucene/store/NativePosixUtil.cpp
after line 117 inside the "if" add this line - {code} fcntl(fd, F_NOCACHE, 1); {code}

And then by running {code}ant build-native-unix{code} from the /contrib/misc folder to check
if it compiles successfully. 


> Genericize DirectIOLinuxDir -> UnixDir
> --------------------------------------
>                 Key: LUCENE-2795
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: core/store
>            Reporter: Michael McCandless
>            Assignee: Varun Thacker
>              Labels: gsoc2011, lucene-gsoc-11, mentor
>         Attachments: LUCENE-2795.patch
> Today DirectIOLinuxDir is tricky/dangerous to use, because you only want to use it for
indexWriter and not IndexReader (searching).  It's a trap.
> But, once we do LUCENE-2793, we can make it fully general purpose because then a single
native Dir impl can be used.
> I'd also like to make it generic to other Unices, if we can, so that it becomes UnixDirectory.

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message