You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "brandboat (via GitHub)" <gi...@apache.org> on 2026/10/13 13:56:18 UTC
[PR] KAFKA-21153: Remove the wait file cleanup logic in ClusterInstance#waitTopicDeletion [kafka]
brandboat opened a new pull request, #23800:
URL: https://github.com/apache/kafka/pull/23800
ClusterInstance#waitTopicDeletion waits for asynchronous physical file cleanup, forcing tests to shorten `log.initial.task.delay.ms` and `log.segment.delete.delay.ms` to avoid timeouts. This wait is unnecessary for tests that only require logical topic deletion. Physical cleanup should be verified by dedicated tests, allowing other tests to use the default configuration.
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-21153: Remove the wait file cleanup logic in ClusterInstance#waitTopicDeletion [kafka]
Posted by "gaurav-narula (via GitHub)" <gi...@apache.org>.
gaurav-narula commented on code in PR #23800:
URL: https://github.com/apache/kafka/pull/23800#discussion_r4261563980
##########
test-common/test-common-runtime/src/main/java/org/apache/kafka/common/test/ClusterInstance.java:
##########
Review Comment:
Might be useful to add a note to the Javadoc that it only waits until all partitions are renamed with `DELETE_DIR_SUFFIX` for future callers
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-21153: Remove the wait file cleanup logic in ClusterInstance#waitTopicDeletion [kafka]
Posted by "brandboat (via GitHub)" <gi...@apache.org>.
brandboat commented on code in PR #23800:
URL: https://github.com/apache/kafka/pull/23800#discussion_r4283757893
##########
clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/admin/DeleteTopicTest.java:
##########
@@ -58,9 +58,7 @@
brokers = 3,
serverProperties = {
@ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_PARTITIONS_CONFIG, value = "1"),
- @ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_REPLICATION_FACTOR_CONFIG, value = "1"),
- @ClusterConfigProperty(key = "log.initial.task.delay.ms", value = "100"),
- @ClusterConfigProperty(key = "log.segment.delete.delay.ms", value = "1000")
+ @ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_REPLICATION_FACTOR_CONFIG, value = "1")
Review Comment:
Thanks for the heads-up. Some of those test cases are already covered:
> 1 the files will be deleted from disk. testCreateAndDeleteTopic should include that
This is covered in `ProducerSendWhileDeletionTest#verifyTopicDeletion` https://github.com/apache/kafka/blob/62f0fef0e81a8e24f6d174f9cf4b640620696e7c/clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/producer/ProducerSendWhileDeletionTest.java#L272-L275
> 2. the broker restart will drop all -delete files.
This one isn't, I'll file a PR for it later.
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-21153: Remove the wait file cleanup logic in ClusterInstance#waitTopicDeletion [kafka]
Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on code in PR #23800:
URL: https://github.com/apache/kafka/pull/23800#discussion_r4282032814
##########
clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/admin/DeleteTopicTest.java:
##########
@@ -58,9 +58,7 @@
brokers = 3,
serverProperties = {
@ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_PARTITIONS_CONFIG, value = "1"),
- @ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_REPLICATION_FACTOR_CONFIG, value = "1"),
- @ClusterConfigProperty(key = "log.initial.task.delay.ms", value = "100"),
- @ClusterConfigProperty(key = "log.segment.delete.delay.ms", value = "1000")
+ @ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_REPLICATION_FACTOR_CONFIG, value = "1")
Review Comment:
This means there are no test cases covering the file deletion, right? I didn’t grep other files, but it would be great if the following scenarios could be covered.
1 the files will be deleted from disk. testCreateAndDeleteTopic should include that
2. the broker restart will drop all -delete files.
This could be a follow-up I think
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-21153: Remove the wait file cleanup logic in ClusterInstance#waitTopicDeletion [kafka]
Posted by "brandboat (via GitHub)" <gi...@apache.org>.
brandboat commented on code in PR #23800:
URL: https://github.com/apache/kafka/pull/23800#discussion_r4285123491
##########
clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/admin/DeleteTopicTest.java:
##########
@@ -58,9 +58,7 @@
brokers = 3,
serverProperties = {
@ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_PARTITIONS_CONFIG, value = "1"),
- @ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_REPLICATION_FACTOR_CONFIG, value = "1"),
- @ClusterConfigProperty(key = "log.initial.task.delay.ms", value = "100"),
- @ClusterConfigProperty(key = "log.segment.delete.delay.ms", value = "1000")
+ @ClusterConfigProperty(key = GroupCoordinatorConfig.OFFSETS_TOPIC_REPLICATION_FACTOR_CONFIG, value = "1")
Review Comment:
Here you go: https://github.com/apache/kafka/pull/23827
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-21153: Remove the wait file cleanup logic in ClusterInstance#waitTopicDeletion [kafka]
Posted by "m1a2st (via GitHub)" <gi...@apache.org>.
m1a2st merged PR #23800:
URL: https://github.com/apache/kafka/pull/23800
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org