You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Stig Rohde Døssing (Jira)" <ji...@apache.org> on 2024/09/18 11:55:00 UTC
[jira] [Created] (KAFKA-17575) TestUtils.tempDirectory registers two shutdown hooks for the same thing
Stig Rohde Døssing created KAFKA-17575:
------------------------------------------
Summary: 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
TestUtils.tempDirectory registers a shutdown hook to clean up the temporary file/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)