[ 
https://issues.apache.org/jira/browse/KAFKA-17575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chia-Ping Tsai resolved KAFKA-17575.
------------------------------------
    Fix Version/s: 4.0.0
         Assignee: Stig Rohde Døssing
       Resolution: Fixed

> TestUtils.tempDirectory registers two shutdown hooks for the same thing
> -----------------------------------------------------------------------
>
>                 Key: KAFKA-17575
>                 URL: https://issues.apache.org/jira/browse/KAFKA-17575
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Stig Rohde Døssing
>            Assignee: Stig Rohde Døssing
>            Priority: Major
>             Fix For: 4.0.0
>
>
> TestUtils.tempDirectory registers a shutdown hook to clean up the temporary 
> directory on JVM exit. But it also calls file.deleteOnExit, which essentially 
> does the same thing. There's no reason to do both, setting up a shutdown hook 
> via Exit.addShutdownHook should be good enough.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to