All issues

Snapshot replay corrupts the last segment under SIGTERM#3026

New issue
Open
MIMiguel Arroyocommented 3w ago

Describe the bug

Snapshot replay corrupts the last segment under SIGTERM — surfaces on bedrock-cli in the medium-priority path. The full reproduction is below, along with the workaround we use in staging.

Reproduce

  • Clone ln-dev7/bedrock-cli at the tip of main.
  • Run the smoke suite: pnpm test --workspace bedrock-cli.
  • Notice the test for the affected contract flakes within the first 50 iterations.

Expected behavior

The contract should hold deterministically across the full matrix — staging, production, and the local dev runtime.

Environment

  • node 22.x
  • pnpm 9.x
  • OS: macOS 15.2 (also reproduced on Linux 6.x)

Labels: bug

MImiguel-arroyoself-assigned this3w ago
MImiguel-arroyoadded the labelbug3w ago
MImiguel-arroyoadded this to the milestonev1.4 — Stability3w ago
MImiguel-arroyoadded a commit that references this issuefix(bedrock): guard the regression surfaced in #302655a74002w ago
MImiguel-arroyomentioned this in#30742w ago
MIMiguel Arroyocommented 1w ago

Could we add a regression test before the patch lands? Otherwise this will resurface as soon as the surrounding cleanup happens.

MIMiguel Arroyocommented 1w ago

Bumping priority — three customers hit this last week, two of them on the enterprise tier.

MIMiguel Arroyocommented 1w ago

Re-reading the spec, I think the right contract is the one in the bug report, not the one we're shipping. Going to open a small PR.

MIMiguel Arroyocommented 1w ago

Closing in favor of #3129 — same root cause, same approach, and that branch is further along.

Add a comment

M↓Markdown is supported