Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8CEB497FC for ; Mon, 11 Mar 2013 22:29:14 +0000 (UTC) Received: (qmail 84791 invoked by uid 500); 11 Mar 2013 22:29:14 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 84730 invoked by uid 500); 11 Mar 2013 22:29:14 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 84721 invoked by uid 99); 11 Mar 2013 22:29:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Mar 2013 22:29:14 +0000 Date: Mon, 11 Mar 2013 22:29:14 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-4586) TestDataDirs.testGetDataDirsFromURIs fails with all directories in dfs.datanode.data.dir are invalid 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/HDFS-4586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13599404#comment-13599404 ] Chris Nauroth commented on HDFS-4586: ------------------------------------- I really appreciate you picking up this fix so quickly. :-) {code} public DataNodeDiskChecker(FsPermission expectedPermission) { } {code} It looks like the constructor forgot to initialize expectedPermission. I added {{this.expectedPermission = expectedPermission;}} before I tested the patch. I verified that it was successful on both Mac and Windows. If you can upload a new patch with that small change, then I am +1. I agree with the approach. Thanks again! > TestDataDirs.testGetDataDirsFromURIs fails with all directories in dfs.datanode.data.dir are invalid > ---------------------------------------------------------------------------------------------------- > > Key: HDFS-4586 > URL: https://issues.apache.org/jira/browse/HDFS-4586 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 3.0.0 > Reporter: Ivan Mitic > Assignee: Ivan Mitic > Attachments: HDFS-4586.trunk.patch > > > Error Message > All directories in dfs.datanode.data.dir are invalid: "/p1" "/p2" "/p3" > Stacktrace > {code} > java.io.IOException: All directories in dfs.datanode.data.dir are invalid: "/p1" "/p2" "/p3" > at org.apache.hadoop.hdfs.server.datanode.DataNode.getDataDirsFromURIs(DataNode.java:1668) > at org.apache.hadoop.hdfs.server.datanode.TestDataDirs.testGetDataDirsFromURIs(TestDataDirs.java:53) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > {code} > Seems like Jenkins will return -1 on all HDFS patches because of this (check HDFS-4583) -- 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