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

Sriram Subramanian commented on KAFKA-1258:
-------------------------------------------

Look into http://junit.org/javadoc/4.9/org/junit/rules/TemporaryFolder.html. 
Helps to manage temp folders in junit. It may be supported only in java 7. 

> 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
>             Fix For: 0.9.0
>
>
> 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.1.5#6160)

Reply via email to