ashwinpankaj commented on code in PR #23381:
URL: https://github.com/apache/kafka/pull/23381#discussion_r4044051454


##########
tools/src/test/java/org/apache/kafka/tools/ProducerPerformanceTest.java:
##########
@@ -74,9 +76,11 @@ public class ProducerPerformanceTest {
     @Spy
     ProducerPerformance producerPerformanceSpy;
 
+    @TempDir
+    private Path tempDir;
+
     private File createTempFile(String contents) throws IOException {
-        File file = File.createTempFile("ProducerPerformanceTest", ".tmp");
-        file.deleteOnExit();
+        File file = 
Files.createFile(tempDir.resolve("ProducerPerformanceTest-" + System.nanoTime() 
+ ".tmp")).toFile();

Review Comment:
   same comment as 
https://github.com/apache/kafka/pull/23388/changes#r4044041406



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to