Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][test] Fix CoordinatorService, MetadataStore and MockZooKeeper leaks in tests #15638

Merged
merged 10 commits into from
Jul 13, 2022
Merged
Prev Previous commit
Next Next commit
fix shutdown
  • Loading branch information
nicoloboschi committed Jul 12, 2022
commit cb2b1fce2a04537984bb8afed055d902e214bedf
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,10 @@ private CompletableFuture<Void> addTimeoutHandling(CompletableFuture<Void> futur
Duration.ofMillis(Math.max(1L, getConfiguration().getBrokerShutdownTimeoutMs())),
shutdownExecutor, () -> FutureUtil.createTimeoutException("Timeout in close", getClass(), "close"));
future.handle((v, t) -> {
LOG.info("Shutdown timed out after {} ms", getConfiguration().getBrokerShutdownTimeoutMs());
LOG.info(ThreadDumpUtil.buildThreadDiagnosticString());
if (t != null) {
LOG.info("Shutdown timed out after {} ms", getConfiguration().getBrokerShutdownTimeoutMs());
LOG.info(ThreadDumpUtil.buildThreadDiagnosticString());
}
// shutdown the shutdown executor
shutdownExecutor.shutdownNow();
return null;
Expand Down