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 2019/06/21 01:50:21 UTC

[GitHub] [pulsar] yjshen commented on issue #4573: [managed-ledger] create bookkeeper client during ManagedLedger shutdown

yjshen commented on issue #4573: [managed-ledger] create bookkeeper client during ManagedLedger shutdown
URL: https://github.com/apache/pulsar/issues/4573#issuecomment-504258673
 
 
   @rdhabalia could you please take a look at this? It seems it's caused by #3933?
   
   ```java
       public void shutdown() throws InterruptedException, ManagedLedgerException {
               ......
               ......
   
            if (zookeeper != null) {
               zookeeper.close();
           }
   
           if (isBookkeeperManaged) {
               try {
                   BookKeeper bkFactory = bookkeeperFactory.get();    // this create a new bookkeeper using closed zk.
                   if (bkFactory != null) {
                       bkFactory.close();
                   }
               } catch (BKException e) {
                   throw new ManagedLedgerException(e);
               }
           }
   ``` 

----------------------------------------------------------------
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


With regards,
Apache Git Services