[ https://issues.apache.org/jira/browse/HDFS-8844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14650618#comment-14650618 ]
Masatake Iwasaki commented on HDFS-8844: ---------------------------------------- Failed tests are copying non-existent file to {{CLITEST_DATA/file}} but expected output could not be given if the tartget {{CLITEST_DATA/file}} exists. The cause is test for {{getmerge}} creating {{CLITEST_DATA/file}} but not deleting it. {noformat} <test> <description>getmerge</description> <test-commands> <command>-fs NAMENODE -mkdir -p /user/USERNAME/dir1</command> <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data15bytes /user/USERNAME/dir1</command> <command>-fs NAMENODE -copyFromLocal CLITEST_DATA/data30bytes /user/USERNAME/dir1</command> <command>-fs NAMENODE -getmerge /user/USERNAME/dir1 CLITEST_DATA/file</command> <command>-cat CLITEST_DATA/file</command> </test-commands> <cleanup-commands> <command>-fs NAMENODE -rm -r /user/USERNAME CLITEST_DATA/file</command> <command>rm data</command> {noformat} > TestHDFSCLI does not cleanup the test directory > ----------------------------------------------- > > Key: HDFS-8844 > URL: https://issues.apache.org/jira/browse/HDFS-8844 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Reporter: Akira AJISAKA > Assignee: Masatake Iwasaki > Priority: Minor > Attachments: HDFS-8844.001.patch > > > If TestHDFSCLI is executed twice without {{mvn clean}}, the second try fails. > Here are the failing test cases: > {noformat} > 2015-07-31 21:35:17,654 [main] INFO cli.CLITestHelper > (CLITestHelper.java:displayResults(231)) - Failing tests: > 2015-07-31 21:35:17,654 [main] INFO cli.CLITestHelper > (CLITestHelper.java:displayResults(232)) - -------------- > 2015-07-31 21:35:17,654 [main] INFO cli.CLITestHelper > (CLITestHelper.java:displayResults(238)) - 226: get: getting non > existent(absolute path) > 2015-07-31 21:35:17,654 [main] INFO cli.CLITestHelper > (CLITestHelper.java:displayResults(238)) - 227: get: getting non existent > file(relative path) > 2015-07-31 21:35:17,654 [main] INFO cli.CLITestHelper > (CLITestHelper.java:displayResults(238)) - 228: get: Test for hdfs:// path - > getting non existent > 2015-07-31 21:35:17,654 [main] INFO cli.CLITestHelper > (CLITestHelper.java:displayResults(238)) - 229: get: Test for Namenode's path > - getting non existent > 2015-07-31 21:35:17,654 [main] INFO cli.CLITestHelper > (CLITestHelper.java:displayResults(238)) - 250: copyToLocal: non existent > relative path > 2015-07-31 21:35:17,654 [main] INFO cli.CLITestHelper > (CLITestHelper.java:displayResults(238)) - 251: copyToLocal: non existent > absolute path > 2015-07-31 21:35:17,655 [main] INFO cli.CLITestHelper > (CLITestHelper.java:displayResults(238)) - 252: copyToLocal: Test for hdfs:// > path - non existent file/directory > 2015-07-31 21:35:17,655 [main] INFO cli.CLITestHelper > (CLITestHelper.java:displayResults(238)) - 253: copyToLocal: Test for > Namenode's path - non existent file/directory > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)