Repository navigation
Description
Native v0.140.4-beta.1 (88327e0dbbdbfad2b140a8206fe9d5b0f6d45235) produced recurring history write failures during an ARM64 field trial. Five incidents produced seven failed attempts, including two immediate SQLITE_BUSY retries after a deadline. All observed incidents recovered, accepted ticks remained accounted for, and no ticks were rejected. Stable promotion is held.
#1552 reproduces and fixes the retry race: database/sql can mark a transaction done before automatic SQLite rollback finishes. It also records the write phase. That explains the immediate BUSY retries, but the source of the initial five-second delay is still unconfirmed. One incident overlapped natural hourly maintenance; another happened outside it. Short healthy-window disk-sync measurements and historical thermal flags do not identify the cause.
Trace the initial deadline with the phase information in the next exact beta, fix any remaining source of repeated failures, and verify a fresh field trial before clearing this blocker. Preserve accepted ticks, exact-once receipts, identity and schema. Local tests alone do not close this issue.
Fixes merged on 2026-10-11:
- fix(history): wait for cancelled rollback before retry #1552 waits for automatic rollback before a live writer hands over its lock, and names the phase of a failed write.
- fix(history): retain maintenance writer lock through rollback #1555 applies the same handoff rule to archive writes and hourly backfill. Real SQLite cancellation regressions pass 20 times, with five race runs and full
make verify. - fix(state): bound forecast retention scans and pauses #1553 fixes the separate forecast retention budget problem. The same local 4096-row excess now finishes in 823 ms rather than requiring three passes with two deadlines.
The first five-second live write delay remains unconfirmed. These rollback tests inject the initial delay and therefore prove the failed retry mechanism, not the initial field trigger. Short live sync, CPU and thermal observations do not prove its cause.
Next candidate: v0.140.5-beta.1 from de46b4a, through native release run 38135058868. Both release packages, checksums, GitHub digests, receipt and clean VCS metadata are verified. The candidate is now installed through the normal updater. The new 48-hour trial started 2026-10-11 at 11:26:33 UTC; earliest promotion is 2026-10-13 at 11:26:33 UTC. The first forecast evaluation completed without a pruning timeout, the native plan is fresh and no longer stale in control, all three drivers are healthy, and history continues with zero failed or rejected ticks. The initial short healthy window is not a completed trial. Keep this issue open until new field evidence supports resolution; the candidate needs a fresh owner-selected 48-hour trial.
Activity
fix(state): pace the recovery snapshot behind live commits (#2099)