Technoboy- commented on code in PR #15680:
URL: https://github.com/apache/pulsar/pull/15680#discussion_r877900862
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java:
##########
@@ -578,6 +577,21 @@ public CompletableFuture<Void> closeAsync() {
}
}
+ private CompletableFuture<Void> closeManagedLedgerClientFactory() {
+ final CompletableFuture<Void> future = new CompletableFuture<>();
+ executor.execute(() -> {
+ try {
+ managedLedgerClientFactory.close();
+ future.complete(null);
+ } catch (Exception e) {
+ LOG.warn("ManagedLedgerClientFactory closing failed {}",
e.getMessage());
+ future.completeExceptionally(new IllegalStateException(e));
+ }
+ });
+ return FutureUtil.addTimeoutHandling(future,
Duration.ofMillis(config.getBrokerShutdownTimeoutMs()), executor,
Review Comment:
fixed. thanks
--
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]