You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Ganesh Sahu (Jira)" <ji...@apache.org> on 2023/03/08 03:01:00 UTC
[jira] [Comment Edited] (KAFKA-14218) replace temp file handler with JUnit 5 Temporary Directory Support
[ https://issues.apache.org/jira/browse/KAFKA-14218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17697695#comment-17697695 ]
Ganesh Sahu edited comment on KAFKA-14218 at 3/8/23 3:00 AM:
-------------------------------------------------------------
Greetings team,I am new to the community. As no specific members have been assigned yet and last activity was on Sep 2022, i thought i will start.I hope it's fine ? Do i need to raise a KIP first before making the changes. [~divijvaidya] [~showuon] [~mjsax]
was (Author: JIRAUSER299047):
Greetings team, as no specific members have been assigned yet and last activity was on Sep 2022, i thought i will start.I hope it's fine ?
> replace temp file handler with JUnit 5 Temporary Directory Support
> ------------------------------------------------------------------
>
> Key: KAFKA-14218
> URL: https://issues.apache.org/jira/browse/KAFKA-14218
> Project: Kafka
> Issue Type: Improvement
> Components: unit tests
> Reporter: Luke Chen
> Assignee: Ganesh Sahu
> Priority: Major
> Labels: Newbie, newbie
>
> We created many temp files in tests, and sometimes we forgot to delete them after usage. Instead of polluting @AfterEach for each test, we should consider to use JUnit 5 TempDirectory Extension.
>
> REF: 1. [https://github.com/apache/kafka/pull/12591#issuecomment-1243001431]
> 2. [https://www.baeldung.com/junit-5-temporary-directory]
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)