You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/06/10 15:01:15 UTC

[GitHub] [pulsar] gaozhangmin commented on issue #10784: [Java client] PulsarClientImpl.shutdown sporadically hangs

gaozhangmin commented on issue #10784:
URL: https://github.com/apache/pulsar/issues/10784#issuecomment-858698484


   Maybe We should set timeout in Future.get() method? am i right?
   ```
   private void shutdownEventLoopGroup(EventLoopGroup eventLoopGroup) throws PulsarClientException {
           if (createdEventLoopGroup && eventLoopGroup != null && !eventLoopGroup.isShutdown()) {
               try {
                   eventLoopGroup.shutdownGracefully().get(60, );
               } catch (Throwable t) {
                   throw PulsarClientException.unwrap(t);
               }
           }
       }
   ```


-- 
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:
users@infra.apache.org