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 27FFF18353 for ; Wed, 12 Aug 2015 09:23:40 +0000 (UTC) Received: (qmail 53134 invoked by uid 500); 12 Aug 2015 09:23:38 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 53080 invoked by uid 500); 12 Aug 2015 09:23:38 -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 53069 invoked by uid 99); 12 Aug 2015 09:23:38 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2015 09:23:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C881A181A94 for ; Wed, 12 Aug 2015 09:23:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id U0S984xawLGb for ; Wed, 12 Aug 2015 09:23:24 +0000 (UTC) Received: from mail.sd-datasolutions.de (serv2.sd-datasolutions.de [85.25.204.22]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 74E94428F6 for ; Wed, 12 Aug 2015 09:23:24 +0000 (UTC) Received: from VEGA (unknown [IPv6:2001:1a80:2b02:6a01:8e70:5aff:fed1:75a4]) by mail.sd-datasolutions.de (Postfix) with ESMTPSA id E248516F802D9; Wed, 12 Aug 2015 09:23:07 +0000 (UTC) X-NSA-Greeting: Dear NSA, have fun with reading and analyzing this e-mail! From: "Uwe Schindler" To: , References: <1439369824.3389.66.camel@ebi.ac.uk> In-Reply-To: <1439369824.3389.66.camel@ebi.ac.uk> Subject: RE: Strange Directory open exception Date: Wed, 12 Aug 2015 11:23:08 +0200 Message-ID: <007f01d0d4e0$81187190$834954b0$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQH93e5Fw/Yrf/J+cacHlgg3QTo3kZ2uBDwQ Content-Language: de 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 >=20 > Hi, >=20 > 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. >=20 > The exception: >=20 >=20 > 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:102) > at > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) > at > = sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvide > 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:64) > at > org.apache.lucene.store.NIOFSDirectory.(NIOFSDirectory.java:74) >=20 >=20 > Is this a known behavior? do you think the java.nio framework should > behave differently? >=20 > We are on Redhat Enterprise 6: 2.6.32-504.8.1.el6.x86_64 #1 SMP >=20 >=20 >=20 >=20 > Nicola >=20 >=20 > -- > Nicola Buso > Software Engineer - Web Production Team >=20 > European Bioinformatics Institute (EMBL-EBI) European Molecular = Biology > Laboratory >=20 > Wellcome Trust Genome Campus > Hinxton > Cambridge CB10 1SD > United Kingdom >=20 > URL: http://www.ebi.ac.uk >=20 >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org