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 2020/10/05 01:10:27 UTC

[GitHub] [pulsar] hangc0276 commented on issue #8171: AutoRecovery should respect to the ensemble policy used in Pulsar

hangc0276 commented on issue #8171:
URL: https://github.com/apache/pulsar/issues/8171#issuecomment-703347006


   I checked bookkeeper autoRecovery logic, it respected to the ensemble policy store in ledgerMetadata for each ledger fragment. The code as follow. `BookKeeperAdmin#getReplacementBookiesByIndexes`
   ```java
   EnsemblePlacementPolicy.PlacementResult<BookieSocketAddress> replaceBookieResponse =
                       bkc.getPlacementPolicy().replaceBookie(
                               lh.getLedgerMetadata().getEnsembleSize(),
                               lh.getLedgerMetadata().getWriteQuorumSize(),
                               lh.getLedgerMetadata().getAckQuorumSize(),
                               lh.getLedgerMetadata().getCustomMetadata(),
                               ensemble,
                               oldBookie,
                               bookiesToExclude);
   ```
   I am a little confused for this issue, would you please give more details. @sijie 


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