forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shutdown Broker gracefully, but forcefully after brokerShutdownTimeou…
…tMs (apache#10199) * Wait for shutdown of BrokerService event loops * Move CompletableFutureCancellationHandler to pulsar-common util * Prevent misusage of CompletableFutureCancellationHandler * Clear cancelAction field after the future completes - make cancelAction eligible for GC after the future completes (or gets cancelled) * Support cancel signalling when executing multiple futures * Shutdown BrokerService gracefully which using closeAsync - shutdown forcefully when closing times out * Set 100ms to brokerShutdownTimeoutMs used in tests * Revert changes in MessagingServiceShutdownHook * Handle CancellationException since it's used in timeouts in BrokerService * Set shutdown timeout to 0 ms in tests * Ignore TimeoutException and CancellationException when broker shutdown timeout is 0 * Extract GracefulExecutorServicesShutdown and use it in PulsarService - handle graceful / forcefully shutdown also for PulsarService executors * Fix some unclosed PulsarServices * Set shutdown timeout to 0 in some more tests * Do some class and method renamings to clarify the code * Revisit the logic to use awaitTermination * Use shutdownNow to shutdown the scheduler used for future timeout handling
- Loading branch information
Showing
50 changed files
with
841 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.