Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 C56BB111C2 for ; Sun, 8 Jun 2014 01:10:02 +0000 (UTC) Received: (qmail 88803 invoked by uid 500); 8 Jun 2014 01:10:02 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 88755 invoked by uid 500); 8 Jun 2014 01:10:02 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 88743 invoked by uid 99); 8 Jun 2014 01:10:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jun 2014 01:10:02 +0000 Date: Sun, 8 Jun 2014 01:10:02 +0000 (UTC) From: "Jinghui Wang (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-10351) Unit test TestSwiftFileSystemLsOperations#testListEmptyRoot and testListNonEmptyRoot failure. 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/HADOOP-10351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14021044#comment-14021044 ] Jinghui Wang commented on HADOOP-10351: --------------------------------------- Thanks Steve. Updated the patch to make sure those tests start with a clean root directory in the container. > Unit test TestSwiftFileSystemLsOperations#testListEmptyRoot and testListNonEmptyRoot failure. > --------------------------------------------------------------------------------------------- > > Key: HADOOP-10351 > URL: https://issues.apache.org/jira/browse/HADOOP-10351 > Project: Hadoop Common > Issue Type: Test > Components: fs/swift, test > Affects Versions: 2.3.0 > Reporter: Jinghui Wang > Fix For: 3.0.0 > > Attachments: HADOOP-10351.patch > > > TestSwiftFileSystemLsOperations#testListEmptyRoot and testLisNontEmptyRoot fails because the unit test TestFSMainOperationsSwift creates the testing directory test.build.dir through its parent class. But during the parent classes tearDown, only the test.build.dir/test directory is deleted leaving the test.build.dir in the container. However, tests TestSwiftFileSystemLsOperations#testListEmptyRoot and testListEmptyRoot do not expect the directory to exists in the container thus causing the failure. > TestSwiftFileSystemLsOperations.testListEmptyRoot:126->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Non-empty root/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440} > expected:<0> but was:<1> > TestSwiftFileSystemLsOperations.testListNonEmptyRoot:137->Assert.assertEquals:472->Assert.assertEquals:128->Assert.failNotEquals:647->Assert.fail:93 Wrong #of root children/[00] SwiftFileStatus{ path=swift://container1.service/home; isDirectory=true; length=0; blocksize=33554432; modification_time=1392850893440} > [01] SwiftFileStatus{ path=swift://patchtest.softlayer/test; isDirectory=true; length=0; blocksize=33554432; modification_time=1392851462990} > expected:<1> but was:<2> -- This message was sent by Atlassian JIRA (v6.2#6252)