unknowntpo opened a new pull request, #23929: URL: https://github.com/apache/kafka/pull/23929
Follow-up to #23604. Several tests create a client, metrics, or log manager that the cleanup method never closes, either because a local variable shadows the field closed in `@AfterEach`, or because the field set up in `@BeforeEach` is reassigned without closing the old instance. This fixes the same pattern in `KafkaConsumerTest`, `MetricsTest`, `LogManagerTest`, and `WorkerTaskTest`. Generated-by: Claude Opus 5.5 -- 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]
