Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 28523 invoked from network); 23 Aug 2010 17:18:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Aug 2010 17:18:57 -0000 Received: (qmail 3322 invoked by uid 500); 23 Aug 2010 17:18:56 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 3271 invoked by uid 500); 23 Aug 2010 17:18:55 -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 3264 invoked by uid 99); 23 Aug 2010 17:18:55 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Aug 2010 17:18:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Aug 2010 17:18:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7NHIFdq009156 for ; Mon, 23 Aug 2010 17:18:16 GMT Message-ID: <8341205.512041282583895809.JavaMail.jira@thor> Date: Mon, 23 Aug 2010 13:18:15 -0400 (EDT) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-2615) DirectIOLinuxDirectory hardwires buffer size and creates files with invalid permissions In-Reply-To: <15867447.512021282583655824.JavaMail.jira@thor> 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-2615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless updated LUCENE-2615: --------------------------------------- Attachment: LUCENE-2615.patch Attached patch; I'll commit shortly. > DirectIOLinuxDirectory hardwires buffer size and creates files with invalid permissions > --------------------------------------------------------------------------------------- > > Key: LUCENE-2615 > URL: https://issues.apache.org/jira/browse/LUCENE-2615 > Project: Lucene - Java > Issue Type: Bug > Components: contrib/* > Reporter: Michael McCandless > Assignee: Michael McCandless > Fix For: 3.1, 4.0 > > Attachments: LUCENE-2615.patch > > > TestDemo fails if I use the DirectIOLinuxDirectory (using Robert's new -Dtests.directory=XXX), because when it O_CREATs a file, it fails to specify the mode, so [depending on C stack!] you can get permission denied. > Also, we currently hardwire the buffer size to 1 MB (Mark found this)... I plan to add a "forcedBufferSize" to the DirectIOLinuxDir's ctor, to optionally override lucene's default buffer sizes (which are way too small for direct IO to get barely OK performance). If you pass 0 for this then you get Lucene's default buffer sizes... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org