aloyszhang opened a new pull request #13085:
URL: https://github.com/apache/pulsar/pull/13085
### Motivation
If we have a topic with write quorum > ack quorum, when there are some
entries that met the ack quorum but not the write quorum, then these entries
will trigger an ensemble change when complete.
```shell
14:32:50.001 [BookKeeperClientWorker-OrderedExecutor-34-0] INFO
org.apache.bookkeeper.client.LedgerHandle - New Ensemble: [11.181.55.191:3181,
9.146.211.202:3181, 11.181.55.252:3181] for ledger: 482146
14:32:50.004 [BookKeeperClientWorker-OrderedExecutor-34-0] INFO
org.apache.bookkeeper.client.LedgerHandle - New Ensemble: [11.181.55.191:3181,
9.146.211.234:3181, 11.181.55.252:3181] for ledger: 482146
14:32:50.008 [BookKeeperClientWorker-OrderedExecutor-34-0] INFO
org.apache.bookkeeper.client.LedgerHandle - New Ensemble: [11.181.55.191:3181,
11.181.55.210:3181, 11.181.55.252:3181] for ledger: 482146
```
The ensemble change happened many times, so, it's better we can add a limit
for this behavior.
### Modifications
Add `bookkeeperMaxNumEnsembleChanges` in broker.conf to limit the max number
of ensemble changes.
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
### Documentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?
- [ ] `doc-required`
(If you need help on updating docs, create a doc issue)
- [ ] `no-need-doc`
(Please explain why)
- [ ] `doc`
(If this PR contains doc changes)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]