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/01/09 21:55:40 UTC

[GitHub] ivankelly commented on issue #3279: Error while recovering ledger when send messages by producer

ivankelly commented on issue #3279: Error while recovering ledger when send messages by producer
URL: https://github.com/apache/pulsar/issues/3279#issuecomment-452883263
 
 
   @sijie 
   With 4.9, the new producer will not have to worry about the exception, as the conditional update will succeed in this case. If the previous owner's attempt to close wins, the new owner's recovery close will fail, reread the metadata, see that the metadata is no longer in IN_RECOVERY state, so it can assume it is in CLOSED state. Since it is in closed state, it can just take the CLOSED metadata and use that.
   
   https://github.com/apache/bookkeeper/blob/4c8587715104cde6dbd70d1e7de0fc1853122eda/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/ReadOnlyLedgerHandle.java#L313

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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