Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9D5236198 for ; Wed, 6 Jul 2011 07:19:03 +0000 (UTC) Received: (qmail 17578 invoked by uid 500); 6 Jul 2011 07:19:00 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 17064 invoked by uid 500); 6 Jul 2011 07:18:46 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 17033 invoked by uid 99); 6 Jul 2011 07:18:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 07:18:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 07:18:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BBF104566C for ; Wed, 6 Jul 2011 07:18:16 +0000 (UTC) Date: Wed, 6 Jul 2011 07:18:16 +0000 (UTC) From: "Varun Thacker (JIRA)" To: dev@lucene.apache.org Message-ID: <422057661.2962.1309936696766.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <7909474.94631291391710604.JavaMail.jira@thor> Subject: [jira] [Commented] (LUCENE-2795) Genericize DirectIOLinuxDir -> UnixDir MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060331#comment-13060331 ] Varun Thacker commented on LUCENE-2795: --------------------------------------- {quote} 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? {quote} 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. Thanks. > Genericize DirectIOLinuxDir -> UnixDir > -------------------------------------- > > Key: LUCENE-2795 > URL: https://issues.apache.org/jira/browse/LUCENE-2795 > 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: 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