HQebupt commented on code in PR #16756: URL: https://github.com/apache/pulsar/pull/16756#discussion_r946890686
########## pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java: ########## @@ -731,6 +731,13 @@ public CompletableFuture<Void> closeAndRemoveReplicationClient(String clusterNam public CompletableFuture<Void> closeAsync() { try { log.info("Shutting down Pulsar Broker service"); + log.info("Event loops shutting down gracefully..."); + List<CompletableFuture<?>> shutdownEventLoops = new ArrayList<>(); + shutdownEventLoops.add(shutdownEventLoopGracefully(acceptorGroup)); + shutdownEventLoops.add(shutdownEventLoopGracefully(workerGroup)); Review Comment: True. Closing protocol handler first is reasonable because the protocol handler service maybe depends on broker service. How about it ? @Technoboy- <img width="959" alt="image" src="https://user-images.githubusercontent.com/4970972/184911740-760e9eb3-563c-4732-9dcd-11eaccc4b996.png"> -- 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: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org