[
https://issues.apache.org/jira/browse/PIG-1391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12860764#action_12860764
]
Thejas M Nair commented on PIG-1391:
------------------------------------
bq. Since ivy cache currently gets junit-4.5.jar, the tests run with junit4
mode, no?
No. If a test class is a subclass of junit.framework.TestCase, it runs in the
junit 3 compatible mode, and does not recognize the annotations such as
@AfterClass . So it is necessary to annotate the class with
@RunWith(JUnit4.class).
> pig unit tests leave behind files in temp directory because MiniCluster files
> don't get deleted
> -----------------------------------------------------------------------------------------------
>
> Key: PIG-1391
> URL: https://issues.apache.org/jira/browse/PIG-1391
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.7.0
> Reporter: Thejas M Nair
> Assignee: Thejas M Nair
> Fix For: 0.7.0
>
> Attachments: minicluster.patch
>
>
> Pig unit test runs leave behind files in temp dir (/tmp) and there are too
> many files in the directory over time.
> Most of the files are left behind by MiniCluster . It closes/shutsdown
> MiniDFSCluster, MiniMRCluster and the FileSystem that it has created when the
> constructor is called, only in finalize(). And java does not guarantee that
> finalize() will be called.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.