Skip to content

Sealed watch catch-up must not drop the tail on mid-file CRC - #14

Open
paulocsanz wants to merge 2 commits into
beyondoss:mainfrom
paulocsanz:dst/b37-watch-crc
Open

Sealed watch catch-up must not drop the tail on mid-file CRC#14
paulocsanz wants to merge 2 commits into
beyondoss:mainfrom
paulocsanz:dst/b37-watch-crc

Conversation

@paulocsanz

Copy link
Copy Markdown
Contributor

rebuild_from_records already fail-stops on a sealed mid-file CRC (#11). scan_since (watch reconnect) on the same bytes returned Ok([keep]) and dropped every later key. The subscriber thinks catch-up finished.

Two commits: failing production test, then fail-stop on sealed files only. The active file still stops at a torn write (watch_replay_skips_crc_corrupted_record stays green).

  • scan_file_records takes sealed
  • sealed CRC → CrcMismatch
  • active CRC → stop (torn tail)

scan_since returned Ok([keep]) after flipping the middle sealed
record. rebuild_from_records already fail-stops on the same bytes.
scan_since treated a sealed CRC miss like a torn active tail and
returned Ok(prefix). Later keys never reached the subscriber and
there was no resync. Active files still stop — that is a torn write.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant