Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A7A7B183F0 for ; Wed, 12 Aug 2015 09:37:12 +0000 (UTC) Received: (qmail 87437 invoked by uid 500); 12 Aug 2015 09:36:49 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 87399 invoked by uid 500); 12 Aug 2015 09:36:49 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 87388 invoked by uid 99); 12 Aug 2015 09:36:48 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2015 09:36:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 3A977DC87C for ; Wed, 12 Aug 2015 09:36:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.006 X-Spam-Level: X-Spam-Status: No, score=-0.006 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.006, SPF_HELO_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id DWB5kiBpSpQh for ; Wed, 12 Aug 2015 09:36:36 +0000 (UTC) Received: from hx-mx1.ebi.ac.uk (mx1.ebi.ac.uk [193.62.195.238]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 2A0BF205B0 for ; Wed, 12 Aug 2015 09:36:36 +0000 (UTC) Received: from hx-mx1.ebi.ac.uk (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 187AD22DD0A_5CB139DB; Wed, 12 Aug 2015 09:36:29 +0000 (GMT) Received: from linuxf.windows.ebi.ac.uk (linuxf.windows.ebi.ac.uk [172.22.68.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by hx-mx1.ebi.ac.uk (Sophos Email Appliance) with ESMTPSA id EE7EE22DD07_5CB139CF; Wed, 12 Aug 2015 09:36:28 +0000 (GMT) Message-ID: <1439372188.3389.68.camel@ebi.ac.uk> Subject: Re: Strange Directory open exception From: Nicola Buso Reply-To: nbuso@ebi.ac.uk To: Uwe Schindler , java-user@lucene.apache.org Date: Wed, 12 Aug 2015 10:36:28 +0100 In-Reply-To: <007f01d0d4e0$81187190$834954b0$@thetaphi.de> References: <1439369824.3389.66.camel@ebi.ac.uk> <007f01d0d4e0$81187190$834954b0$@thetaphi.de> Organization: EMBL-EBI Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.4 (3.16.4-2.fc22) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Hi Uwe, thanks for your reply. Do you have any planned date for 5.3? Cheers, Nicola On Wed, 2015-08-12 at 11:23 +0200, Uwe Schindler wrote: > Hi, > > this should be fixed in coming Lucene 5.3: > https://issues.apache.org/jira/browse/LUCENE-6542 > > The reason for this behavior is that we need to ensure that the > directory exists before we open it. For that it calls > Files.createDirectories - which requires write access. The fix only > calls createDirectories if the index does not exist. > > Uwe > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: uwe@thetaphi.de > > > -----Original Message----- > > From: Nicola Buso [mailto:nbuso@ebi.ac.uk] > > Sent: Wednesday, August 12, 2015 10:57 AM > > To: java-user@lucene.apache.org > > Subject: Strange Directory open exception > > > > Hi, > > > > we are migrating to Lucene 5 and we have a strange Exception that > > was not > > happening in Lucene 4. > > We are indexing in a pre-production environment and we move the > > index in > > the production environment later; in the prod env the indices are > > visible to > > our application with read-only rights. To clarify the read -only > > rights are at > > both level of mount definition and user rights on File System. > > If we mount the partition in read-write and we keep the user that's > > running > > our application with read-only rights the Exception is not > > happening. > > > > The exception: > > > > > > java.nio.file.FileSystemException: > > /nfs/public/ro/ebinocle/prod/search/sra > > -analysis/150810_131208/main: > > Read-only file system > > at > > sun.nio.fs.UnixException.translateToIOException(UnixException.java: > > 91) > > at > > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:10 > > 2) > > at > > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:10 > > 7) > > at > > sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemPro > > vide > > r.java:383) > > at java.nio.file.Files.createDirectory(Files.java:630) > > at > > java.nio.file.Files.createAndCheckIsDirectory(Files.java:734) > > at java.nio.file.Files.createDirectories(Files.java:720) > > at > > org.apache.lucene.store.FSDirectory.(FSDirectory.java:128) > > at > > org.apache.lucene.store.NIOFSDirectory.(NIOFSDirectory.java:6 > > 4) > > at > > org.apache.lucene.store.NIOFSDirectory.(NIOFSDirectory.java:7 > > 4) > > > > > > Is this a known behavior? do you think the java.nio framework > > should > > behave differently? > > > > We are on Redhat Enterprise 6: 2.6.32-504.8.1.el6.x86_64 #1 SMP > > > > > > > > > > Nicola > > > > > > -- > > Nicola Buso > > Software Engineer - Web Production Team > > > > European Bioinformatics Institute (EMBL-EBI) European Molecular > > Biology > > Laboratory > > > > Wellcome Trust Genome Campus > > Hinxton > > Cambridge CB10 1SD > > United Kingdom > > > > URL: http://www.ebi.ac.uk > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org