You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "horizonzy (via GitHub)" <gi...@apache.org> on 2023/07/04 03:29:52 UTC
[GitHub] [bookkeeper] horizonzy commented on pull request #4013: Replace bookie support downgrade to replace bookie with itself.
horizonzy commented on PR #4013:
URL: https://github.com/apache/bookkeeper/pull/4013#issuecomment-1619416803
> I am just thinking, this issue is related to how we exclude bookies. For example, we have 3 bookies and the E,W,Q is 3,3,2. So if we have lost a replica, then we exclude all bookies in the ensemble, we have no bookies to write. You want to choose the bookie from the failure bookie itself, so the simple way should be don't remove itself from the bookies. Then the remaining thing will complete by the existing logic, including the bookie writable check.
May not. https://github.com/apache/bookkeeper/blob/52e780f326c6cb5f303b51aa6ab5363c8e94b074/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/RackawareEnsemblePlacementPolicyImpl.java#L468C13-L468C27
In the replaceBookie method. It will add the `currentEnsemble` into the excludeBookies. So if we didn't add the `replaceBookie` to the `excludeBookies`, it also doesn't work.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org