Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logs for ensemble select failed (apache#3779)
### Motivation We have 3 bookies in the same rack, and configured `E = 2, W = 2, A = 2`. When one bookie restarted, we found the ledger select bookie from the same rack failed in the ensemble change replacing the failed bookie step. Due to there being no log information in `selectRandomFromRack`, it's hard to debug the root cause. https://github.com/apache/bookkeeper/blob/02e64a4b97e03afc9993ab227f82a5956965c03f/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/RackawareEnsemblePlacementPolicyImpl.java#L630-L679 ### Modification Add one warn log in `selectRandomFromRack` when selecting a new bookie node failed. (cherry picked from commit 9ff2954)
- Loading branch information