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 3186811393 for ; Fri, 1 Aug 2014 23:11:39 +0000 (UTC) Received: (qmail 30815 invoked by uid 500); 1 Aug 2014 23:11:38 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 30768 invoked by uid 500); 1 Aug 2014 23:11:38 -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 30741 invoked by uid 99); 1 Aug 2014 23:11:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2014 23:11:38 +0000 Date: Fri, 1 Aug 2014 23:11:38 +0000 (UTC) From: "Tristen Georgiou (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ACCUMULO-3041) Unhandled null pointer exception in BulkImport.createNewBulkDir() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Tristen Georgiou created ACCUMULO-3041: ------------------------------------------ Summary: Unhandled null pointer exception in BulkImport.createNewBulkDir() Key: ACCUMULO-3041 URL: https://issues.apache.org/jira/browse/ACCUMULO-3041 Project: Accumulo Issue Type: Bug Components: master Affects Versions: 1.6.0 Reporter: Tristen Georgiou File: org.apache.accumulo.master.tableOps.BulkImport line 188 {code:title=BulkImport.java|borderStyle=solid} String tableDir = fs.matchingFileSystem(new Path(sourceDir), ServerConstants.getTablesDirs()).toString(); if (tableDir == null) throw new IllegalStateException(sourceDir + " is not in a known namespace"); Path directory = new Path(tableDir + "/" + tableId); {code} It is possible that fs.matchingFileSystem() can return null, so calling toString() will cause a NullPointerException. (See org.apache.accumulo.server.fs.VolumeManagerImpl on line 512) The following lines check for a null return, but by this time its too late. I think in my case, I've mis-configured something such that the function is unable to get a matching file system, so I will probably be able to get around this without a code update. Perhaps the fix is as simple as this: {code:title=BulkImport.java|borderStyle=solid} String tableDir = fs.matchingFileSystem(new Path(sourceDir), ServerConstants.getTablesDirs()); if (tableDir == null) throw new IllegalStateException(sourceDir + " is not in a known namespace"); Path directory = new Path(tableDir.toString() + "/" + tableId); {code} -- This message was sent by Atlassian JIRA (v6.2#6252)