Commit c3d965a
committed
cs/manifest: Fix scrubber false positive for replaced segments
The scrub false-positive filter in process_anomalies() only checked
whether a segment with the same offset range existed in the manifest.
A compacted reupload produces a replacement segment at the same
offset range but with a different name (different size). When GC
deleted the old segment from cloud storage while the scrubber was
still referencing a stale manifest, the filter kept the anomaly
because the offset range still matched—even though the current
segment at that range was a different (replacement) object that
existed in cloud storage.
Compare generate_remote_segment_name() for the manifest entry and
the reported-missing segment so that replacements with the same
offset range but different identity are correctly recognized as
false positives.
Fixes CORE-6913.
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>1 parent cb543a7 commit c3d965a
2 files changed
Lines changed: 18 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
502 | 496 | | |
503 | 497 | | |
| 498 | + | |
| 499 | + | |
504 | 500 | | |
505 | 501 | | |
506 | 502 | | |
| |||
2768 | 2764 | | |
2769 | 2765 | | |
2770 | 2766 | | |
2771 | | - | |
2772 | | - | |
2773 | | - | |
2774 | | - | |
2775 | | - | |
2776 | | - | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
2777 | 2771 | | |
2778 | 2772 | | |
2779 | 2773 | | |
| |||
2790 | 2784 | | |
2791 | 2785 | | |
2792 | 2786 | | |
2793 | | - | |
2794 | | - | |
2795 | | - | |
2796 | | - | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
2797 | 2792 | | |
2798 | 2793 | | |
2799 | 2794 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
330 | 329 | | |
331 | 330 | | |
332 | 331 | | |
| |||
0 commit comments