Skip to content

Conversation

@K-jun98
Copy link
Contributor

@K-jun98 K-jun98 commented Nov 12, 2025

Summary

Adds deleteTopics() method to KafkaAdmin to complete the topic lifecycle management API.

Fixes GH-4155

Changes

  • Added deleteTopics(String... topicNames) method to KafkaAdminOperations interface
  • Implemented deleteTopics() in KafkaAdmin class following existing patterns (createOrModifyTopics, describeTopics)
  • Added comprehensive test coverage in KafkaAdminTests
  • Updated reference documentation in configuring-topics.adoc

@K-jun98 K-jun98 changed the title GH-4152: Add deleteTopics() method to KafkaAdmin GH-4155: Add deleteTopics() method to KafkaAdmin Nov 12, 2025
  Implement deleteTopics() in KafkaAdmin and KafkaAdminOperations
  to complete the topic lifecycle management API. The method follows
  existing patterns with try-with-resources for Admin client management,
  respects operationTimeout configuration, and includes proper exception
  handling with thread interrupt state restoration.

  Fixes spring-projectsGH-4155

  Signed-off-by: gobeomjun <alap_u@naver.com>

Signed-off-by: gobeomjun <alap_u@naver.com>
  Add deleteTopics to the list of KafkaAdmin runtime methods
  in the reference documentation.

  Fixes spring-projectsGH-4155

  Signed-off-by: gobeomjun <alap_u@naver.com>

Signed-off-by: gobeomjun <alap_u@naver.com>
@sobychacko sobychacko merged commit f0f2dc3 into spring-projects:main Nov 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add deleteTopics() method to KafkaAdmin

2 participants