Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 012F710EC5 for ; Fri, 5 Dec 2014 16:25:15 +0000 (UTC) Received: (qmail 8453 invoked by uid 500); 5 Dec 2014 16:25:14 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 8416 invoked by uid 500); 5 Dec 2014 16:25:14 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 8402 invoked by uid 99); 5 Dec 2014 16:25:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2014 16:25:14 +0000 Date: Fri, 5 Dec 2014 16:25:14 +0000 (UTC) From: "Christopher Tubbs (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ACCUMULO-3383) AccumuloVFSClassloader creates conflicting local cache directory names when vfs.cache.dir property is set. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-3383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Tubbs updated ACCUMULO-3383: ---------------------------------------- Affects Version/s: (was: 2.0.0) (was: 1.7.0) Fix Version/s: 1.7.0 > AccumuloVFSClassloader creates conflicting local cache directory names when vfs.cache.dir property is set. > ---------------------------------------------------------------------------------------------------------- > > Key: ACCUMULO-3383 > URL: https://issues.apache.org/jira/browse/ACCUMULO-3383 > Project: Accumulo > Issue Type: Bug > Components: start > Affects Versions: 1.6.1 > Reporter: Drew Farris > Assignee: Drew Farris > Priority: Minor > Fix For: 1.6.2, 1.7.0 > > Attachments: ACCUMULO-3383.patch > > > When the vfs.cache.dir property is not set, the AccumuloVFSClassloader will use java.io.tmpdir as a base directory for the local cache of jars and then generate a unique directory name using a combination of the processid, hostname and userid executing the JVM. > When the vfs.cache.dir property is set, that value is used as the base directory and an attempt to generate a unique directory is made using an AtomicInteger. This isn't suitable because for non-long lived processes, this will always be 1 - and there's a good chance that directory already exists and is owned by another user, and not writable to by the user in question. > This leads to a failure of the invoked accumulo component to start. > Modify the behavior of the unique directory creation when vfs.cache.dir is set so that it employs the same mechanism for unique directory naming that is used when it is not set. -- This message was sent by Atlassian JIRA (v6.3.4#6332)