[ 
https://issues.apache.org/jira/browse/OOZIE-3145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16323748#comment-16323748
 ] 

Peter Cseh edited comment on OOZIE-3145 at 1/12/18 9:33 AM:
------------------------------------------------------------

These files are generated by the LauncherAM and the \*Main classes. They assume 
that they are running in a Yarn container so they just write to ./ as it will 
be cleaned up by Yarn. I think the easiest way to solve this is to clean up the 
log4j-\*.properties, \*.log and propagetion-conf.xml files int the XTestCase's 
tearDown() method.
Also, where it's possible use a temporaryFolder rule to target distCP and other 
action's output to somewhere else so the dist2.txt-like files are not there.



was (Author: gezapeti):
These files are generated by the LauncherAM and the *Main classes. They assume 
that they are running in a Yarn container so they just write to ./ as it will 
be cleaned up by Yarn. I think the easiest way to solve this is to clean up the 
log4j-*.properties, *.log and propagetion-conf.xml files int the XTestCase's 
tearDown() method.
Also, where it's possible use a temporaryFolder rule to target distCP and other 
action's output to somewhere else so the dist2.txt-like files are not there.


> TestDistcpMain shall remove created files after test execution
> --------------------------------------------------------------
>
>                 Key: OOZIE-3145
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3145
>             Project: Oozie
>          Issue Type: Bug
>          Components: tests
>    Affects Versions: 5.0.0b1
>            Reporter: Attila Sasvari
>            Assignee: Julia Kinga Marton
>         Attachments: Oozie_test_garbage.png
>
>
> After running TestDistcpMain, local files created are not removed. Subsequent 
> test runs will reuse those files and fail:
> {code}
> $ ls -lrt /home/asasvari/workspace/oozie/core/distcp*
> -rw-rw-r-- 1 asasvari asasvari 1025 Dec 21 18:25 
> /home/asasvari/workspace/oozie/core/distcp-log4j.properties
> -rw-rw-r-- 1 asasvari asasvari 5756 Dec 21 18:26 
> /home/asasvari/workspace/oozie/core/distcp-oozie-1513876931701.log
> {code}
> Those files should be removed after test execution. It would be better to use 
> the oozie/core/target directory so that mvn could clean it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to