Copilot commented on code in PR #20419:
URL: https://github.com/apache/kafka/pull/20419#discussion_r2304614495


##########
streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/RestoreIntegrationTest.java:
##########
@@ -191,6 +193,7 @@ public void shutdown() throws Exception {
 
         IntegrationTestUtils.purgeLocalStreamsState(streamsConfigurations);
         streamsConfigurations.clear();
+        CLUSTER.deleteAllTopics();

Review Comment:
   Deleting all topics after each test may be unnecessarily broad and slow. 
Consider deleting only the specific topics created by the test (e.g., 
"inputTopic") to avoid impacting other tests that might run in parallel or 
share the same cluster.
   ```suggestion
           if (!createdTopics.isEmpty()) {
               CLUSTER.deleteTopics(createdTopics);
               createdTopics.clear();
           }
   ```



-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to