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 6A4C6CD8C for ; Wed, 19 Jun 2013 12:30:22 +0000 (UTC) Received: (qmail 69013 invoked by uid 500); 19 Jun 2013 12:30:21 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 68946 invoked by uid 500); 19 Jun 2013 12:30:21 -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 68933 invoked by uid 99); 19 Jun 2013 12:30:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jun 2013 12:30:21 +0000 Date: Wed, 19 Jun 2013 12:30:20 +0000 (UTC) From: "Corey J. Nolet (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-1499) Move sanity checks from MiniAccumuloCluster constructor into MiniAccumuloConfig.initialize method. 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-1499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13687925#comment-13687925 ] Corey J. Nolet commented on ACCUMULO-1499: ------------------------------------------ Thrift version 0.9.0. I'm on a mac, but that shouldn't make any difference. On Wed, Jun 19, 2013 at 8:24 AM, Christopher Tubbs (JIRA) > Move sanity checks from MiniAccumuloCluster constructor into MiniAccumuloConfig.initialize method. > -------------------------------------------------------------------------------------------------- > > Key: ACCUMULO-1499 > URL: https://issues.apache.org/jira/browse/ACCUMULO-1499 > Project: Accumulo > Issue Type: Improvement > Affects Versions: 1.6.0 > Reporter: David Medinets > Priority: Trivial > Fix For: 1.6.0 > > Attachments: ACCUMULO-1499.patch > > > The code below seems like it should be in the config class: > if (config.getDir().exists() && !config.getDir().isDirectory()) > throw new IllegalArgumentException("Must pass in directory, " + config.getDir() + " is a file"); > if (config.getDir().exists() && config.getDir().list().length != 0) > throw new IllegalArgumentException("Directory " + config.getDir() + " is not empty"); > this.config = config.initialize(); > Any objections to this change? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira