Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-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 D02A817BFF for ; Thu, 2 Oct 2014 11:58:34 +0000 (UTC) Received: (qmail 68202 invoked by uid 500); 2 Oct 2014 11:58:34 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 68160 invoked by uid 500); 2 Oct 2014 11:58:34 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 67974 invoked by uid 99); 2 Oct 2014 11:58:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Oct 2014 11:58:34 +0000 Date: Thu, 2 Oct 2014 11:58:34 +0000 (UTC) From: "Tsuyoshi OZAWA (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-2640) TestDirectoryCollection.testCreateDirectories failed 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/YARN-2640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14156461#comment-14156461 ] Tsuyoshi OZAWA commented on YARN-2640: -------------------------------------- [~hex108], thanks for your contribution. Can we close this jira as duplicated issue of YARN-1979? > TestDirectoryCollection.testCreateDirectories failed > ---------------------------------------------------- > > Key: YARN-2640 > URL: https://issues.apache.org/jira/browse/YARN-2640 > Project: Hadoop YARN > Issue Type: Bug > Components: nodemanager > Reporter: Jun Gong > Assignee: Jun Gong > Attachments: YARN-2640.2.patch, YARN-2640.patch > > > When running test "mvn test -Dtest=TestDirectoryCollection", it failed: > {code} > Running org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection > Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.538 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection > testCreateDirectories(org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection) Time elapsed: 0.969 sec <<< FAILURE! > java.lang.AssertionError: local dir parent not created with proper permissions expected: but was: > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.failNotEquals(Assert.java:743) > at org.junit.Assert.assertEquals(Assert.java:118) > at org.apache.hadoop.yarn.server.nodemanager.TestDirectoryCollection.testCreateDirectories(TestDirectoryCollection.java:104) > {code} > I found it was because testDiskSpaceUtilizationLimit ran before testCreateDirectories when running test, then directory "dirA" was created in test function testDiskSpaceUtilizationLimit. When testCreateDirectories tried to create "dirA" with specified permission, it found "dirA" has already been there and it did nothing. -- This message was sent by Atlassian JIRA (v6.3.4#6332)