You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Archive pruning abandons the current day after a single-row write deadline #1276
On v3.5.3-beta.1 (8650c58), pruneArchivedSamples halves a batch after a one-second archive write deadline, but returns the error once the batch contains only one row. A reader holding archiveViewMu can cause that deadline without any bad data. Returning aborts the current day job, so the next maintenance run stages and verifies that day again.
Local reproduction: record one sample in a temporary store, hold the archive view read lock longer than archiveWriteTimeout, and prune the verified sample. TestArchiveSingleRowDeadlineRetainsCurrentBatch fails on the release code with context deadline exceeded before the reader releases the lock.
Keep the same verified prefix for retry even at one row; release every database and view lock between attempts, yield to live work, and honor the parent cancellation. Preserve the value check before deletion and verified-Parquet-before-delete ordering. Test retry success, cancellation, late corrections, and concurrent live commits.
This is separate from the fixed historical-query lock issue #1270. Fix before promoting this beta line to stable.
The single-row verified-prefix retry fix landed in #1283. The native line has since retired the old Parquet sample-pruning path; pruneArchivedSamples is absent from current Core. Closing this specific old retry defect. The separately tracked native history/write-deadline and migration validation in #1554 and related release blockers remain open.
Activity
frahlg commentedon Oct 18, 2026
The single-row verified-prefix retry fix landed in #1283. The native line has since retired the old Parquet sample-pruning path;
pruneArchivedSamplesis absent from current Core. Closing this specific old retry defect. The separately tracked native history/write-deadline and migration validation in #1554 and related release blockers remain open.