pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

Ledgers remaining underreplicated even when bookies come back from the dead

Open syk-coder opened this issue 5 years ago • 3 comments

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:

  1. Create a cluster with enough bookies for this test (>5)
  2. Start publishing the messages to create a sizeable batch of ledgers
  3. Before killing the pods check the number of undereplicated ledges
  4. Kill 2 or more bookie pods to trigger auto-recovery process
  5. Check the list of underreplicated ledgers now
  6. 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

syk-coder avatar Aug 02 '21 09:08 syk-coder

This is a bookkeeper related issue, this pr may fix this issue. https://github.com/apache/bookkeeper/pull/2767/files

gaozhangmin avatar Aug 19 '21 09:08 gaozhangmin

The issue had no activity for 30 days, mark with Stale label.

codelipenghui avatar Mar 04 '22 06:03 codelipenghui

Closed as stale. Please create a new issue if it's still relevant to the latest versions.

tisonkun avatar Dec 09 '22 11:12 tisonkun