lhotari opened a new pull request #10198:
URL: https://github.com/apache/pulsar/pull/10198
### Motivation
Some tests don't close all ExecutorServices created in tests. There were
also a few issues in production code where ExecutorServices weren't closed.
### Modifications
- consistently close ExecutorServices created in tests
- prefer the usage of Lombok's `@Cleanup("shutdownNow")` for calling the
`.shutdownNow()` method.
- In tests, use `shutdownNow()` instead of `shutdown()` so that executors
are closed asap instead of waiting for in-progress tasks to complete.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]