Ledgers remaining underreplicated even when bookies come back from the dead
Describe the bug When 2 or more bookies in the cluster are down, the auto-recovery gets triggered, but as these come back online, the rereplication worker should Ideally skip the rereplication of the ledgers that are marked as underreplicated. But the ledgers are rereplicated instead
To Reproduce Steps to reproduce the behavior:
- Create a cluster with enough bookies for this test (>5)
- Start publishing the messages to create a sizeable batch of ledgers
- Before killing the pods check the number of undereplicated ledges
- Kill 2 or more bookie pods to trigger auto-recovery process
- Check the list of underreplicated ledgers now
- Keep monitoring the undereplicated ledgers while the bookie come back online
Expected behavior Ideally as and when the bookies come up the ledgers marked as underreplicated would be read by the rereplicaton worker and from the metadata the worked should skip these as the bookies are available.
Additional context Pulsar version used for testing : 2.7.2.8
This is a bookkeeper related issue, this pr may fix this issue. https://github.com/apache/bookkeeper/pull/2767/files
The issue had no activity for 30 days, mark with Stale label.
Closed as stale. Please create a new issue if it's still relevant to the latest versions.