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 3856C105D5 for ; Fri, 16 Jan 2015 18:21:35 +0000 (UTC) Received: (qmail 79558 invoked by uid 500); 16 Jan 2015 18:21:37 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 79506 invoked by uid 500); 16 Jan 2015 18:21:36 -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 79492 invoked by uid 99); 16 Jan 2015 18:21:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jan 2015 18:21:36 +0000 Date: Fri, 16 Jan 2015 18:21:36 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7632) MiniDFSCluster configures DataNode data directories incorrectly if using more than 1 DataNode and more than 2 storage locations per DataNode. 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-7632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14280599#comment-14280599 ] Chris Nauroth commented on HDFS-7632: ------------------------------------- Thank you for the review, Arpit. The failure in {{TestFileTruncate}} is unrelated. This appears to be a flaky test. It turns out that branch-2 still has an old test suite, {{TestCorruptFilesJsp}}, which would fail to compile after this patch. The test suite is obsolete since the removal of the jsp code, and it's actually failing right now. I filed HDFS-7635 to remove it. Arpit, would you mind reviewing that too? I think it's pretty straightforward. After that goes in, this patch will work fine for branch-2. > MiniDFSCluster configures DataNode data directories incorrectly if using more than 1 DataNode and more than 2 storage locations per DataNode. > --------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HDFS-7632 > URL: https://issues.apache.org/jira/browse/HDFS-7632 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Reporter: Chris Nauroth > Assignee: Chris Nauroth > Attachments: HDFS-7632.001.patch > > > {{MiniDFSCluster}} allows the caller to set the number of storage locations per DataNode. If this number is set higher than 2, and if the cluster is configured with more than 1 DataNode, then the calculation of the storage directory paths will be incorrect. Multiple DataNodes will attempt to use the same storage directory, and one of them will fail while trying to acquire the file lock. -- This message was sent by Atlassian JIRA (v6.3.4#6332)