fix: No need to trigger ensembleChangeLoop if all failed bookies are not in current ensemble
Descriptions of the changes in this PR:
No need to trigger ensembleChangeLoop if all failed bookies are not in current ensemble.
Motivation
Fix the bug issue. https://github.com/apache/bookkeeper/issues/4261
Changes
No need to trigger ensembleChangeLoop if all failed bookies are not in current ensemble.
Master Issue: #
In order to uphold a high standard for quality for code contributions, Apache BookKeeper runs various precommit checks for pull requests. A pull request can only be merged when it passes precommit checks.
Be sure to do all of the following to help us incorporate your contribution quickly and easily:
If this PR is a BookKeeper Proposal (BP):
- [ ] Make sure the PR title is formatted like:
<BP-#>: Description of bookkeeper proposale.g. BP-1: 64 bits ledger is support- [ ] Attach the master issue link in the description of this PR.
- [ ] Attach the google doc link if the BP is written in Google Doc.
Otherwise:
- [ ] Make sure the PR title is formatted like:
<Issue #>: Description of pull requeste.g. Issue 123: Description ...- [ ] Make sure tests pass via
mvn clean apache-rat:check install spotbugs:check.- [ ] Replace
<Issue #>in the title with the actual Issue number.
#4285 can fix the problem, but this PR is also good for avoiding the unnecessary ensembleChangeLoop. I think this is useful.
@hangc0276 @horizonzy I have added a unit for this PR. PTAL
I this related to #4194? /cc @shustsud
@dlg99 @hangc0276 @eolivelli PTAL, thanks
@M1eyu2018 Thanks for your contribution. Would you please help check the failed tests? Thanks.
Sorry I didn't remember why I close this last week. It maybe a mis-operation. @M1eyu2018 Would you please help check the failed tests? Thanks.
Sorry I didn't remember why I close this last week. It maybe a mis-operation. @M1eyu2018 Would you please help check the failed tests? Thanks.
OK, I will check as soon as possible.
@hangc0276 @shoothzj I have checked the failed tests.