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/12/05 05:39:52 UTC

[GitHub] [pulsar] laxpio commented on issue #5669: Pulsar Broker restart fail owing to create functions/assignments topic fail

laxpio commented on issue #5669: Pulsar Broker restart fail owing to create functions/assignments topic fail
URL: https://github.com/apache/pulsar/issues/5669#issuecomment-561978582
 
 
    i modify the code,deal NUll return,and now can not reproduce it.
   original code:
   org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java
   ```
   PositionImpl startReadOperationOnLedger(PositionImpl position) {
           long ledgerId = ledgers.ceilingKey(position.getLedgerId()); // ceilingKey return will null
           if (ledgerId != position.getLedgerId()) {
               // The ledger pointed by this position does not exist anymore. It was deleted because it was empty. We need
               // to skip on the next available ledger
               position = new PositionImpl(ledgerId, 0);
           }
   
           return position;
       }
   ```

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