pramithas opened a new pull request, #18678: URL: https://github.com/apache/kafka/pull/18678
In few of the places, `producer.close()` method was not called after the producer was done working with. Thus, wrapped the logic of producer creation inside try with resources. Also, wherever the resources were closed with explicit invocation of `close()` method, replaced those with `try with resources` block. All the tests are passing after the changes. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- 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