[ https://issues.apache.org/jira/browse/OOZIE-2493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15406586#comment-15406586 ]
Robert Kanter commented on OOZIE-2493: -------------------------------------- Oh, I understand now. I didn't read all of the code context. Deleting the file in TestDistcpMain should be fine. +1 on the 003 patch. I'd rather not cleanup the testcasedir because it can be helpful for debugging unit test failures. > TestDiscp leaves action.xml behind on local filesystem > ------------------------------------------------------ > > Key: OOZIE-2493 > URL: https://issues.apache.org/jira/browse/OOZIE-2493 > Project: Oozie > Issue Type: Bug > Components: tests > Reporter: abhishek bafna > Assignee: abhishek bafna > Labels: patch > Fix For: 4.3.0 > > Attachments: OOZIE-2493-02.patch, OOZIE-2493-03.patch, > OOZIE-2493.patch > > > In the TestDistcpMain#testMain test case, it is deleting a file using HDFS > FileSystem instance which actually created on a local FileSystem. > {code} > // getting file hadoop system instance > FileSystem fs = getFileSystem(); > ... > // creating a storing file on local file system > File actionXml = new File(getTestCaseDir(), "action.xml"); > ... > // Now trying to delete the file on hadoop file system > fs.delete(new Path(getTestCaseDir(), "action.xml"), true); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)