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)