KhyatiVaghamshi opened a new pull request, #23810:
URL: https://github.com/apache/kafka/pull/23810

   Main Jira - [KAFKA-14218](https://issues.apache.org/jira/browse/KAFKA-14218)
   Sub Task - [KAFKA-21268](https://issues.apache.org/jira/browse/KAFKA-21268)
   
   Replace manual temp file/directory handling with JUnit 5 `@TempDir` in
   server, shell, and storage tests, so JUnit manages the cleanup:
   
   * `DynamicBrokerConfigTest` (server): replace `Files.createTempFile()`
     and the `try/finally` delete with a file under `@TempDir`.
   * `MetadataShellIntegrationTest` (shell): pass a `@TempDir` into
     `IntegrationEnv` instead of `Files.createTempDirectory()` and drop the
     manual `Utils.delete()` in `close()`.
   * `RemoteLogOffsetReaderTest` (storage): create the log dir and leader
     epoch checkpoint file under `@TempDir`; remove `Utils.delete()` from
     `tearDown()`.
   * `CleanShutdownFileHandlerTest` (storage): use `@TempDir` as the log
     dir instead of `Files.createTempDirectory()`.
   
   This is a follow-up to #23280, #23381 and #23388.
   


-- 
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