redpanda-data / redpanda

Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM!
https://redpanda.com
9.66k stars 589 forks source link

[v23.1.x] read replicas do not get updates for merged segments #12437

Closed andrwng closed 9 months ago

andrwng commented 1 year ago

Version & Environment

Redpanda version: (use rpk version): v23.1.13

What went wrong?

Read replicas see key_not_found after source cluster does an adjacent segment merge. The v23.1.x sync_manifest() implementation:

This means that when segments are replaced entirely, and removed, the read replica doesn't get the update that those segments have been removed.

What should have happened instead?

The read replica should look for segments that no longer have identical ranges, and replace them in their manifests as needed.

How to reproduce the issue?

  1. start a read replica
  2. merge some segments
  3. attempt to query the read replica
daisukebe commented 1 year ago

Reproduction steps:

github-actions[bot] commented 9 months ago

This issue hasn't seen activity in 3 months. If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.

github-actions[bot] commented 9 months ago

This issue was closed due to lack of activity. Feel free to reopen if it's still relevant.