Skip to content

Archive pruning abandons the current day after a single-row write deadline #1276

Closed

Description

@frahlg

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.

Activity

  1. frahlg commented on Oct 18, 2026

    @frahlg
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions