[ https://issues.apache.org/jira/browse/KAFKA-1258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14059742#comment-14059742 ]
Manikumar Reddy commented on KAFKA-1258: ---------------------------------------- Junit 4.7 can be used to manage temporary folders. But this requires changes in all the test cases and some base test classes. Submitted patch by adding shutdown hook to TestUtils.tempDir method. > Delete temporary data directory after unit test finishes > -------------------------------------------------------- > > Key: KAFKA-1258 > URL: https://issues.apache.org/jira/browse/KAFKA-1258 > Project: Kafka > Issue Type: Bug > Reporter: Guozhang Wang > Assignee: Manikumar Reddy > Labels: newbie > Fix For: 0.9.0 > > Attachments: KAFKA-1258.patch > > > Today in unit testsuite most of the time when a test case is setup a > temporary directory will be created with a random int as suffix, and will not > be deleted after the test. After a few unit tests this will create tons of > directories in java.io.tmpdir (/tmp for Linux). Would be better to remove > them for clean unit tests. -- This message was sent by Atlassian JIRA (v6.2#6252)