Skip to content

Validation and checks against a DuckDB source published by rename (found in the #211 exit gate) #218

Closed

Description

@jrosskopf
  • validate_only / the hook validate a populate template against the alias the server attached BEFORE the writer's
    atomic rename (old inode). A template using a column the new file added fails validation ("Referenced column not
    found") although the next refresh, which re-attaches, succeeds. Run the template's own DETACH/ATTACH inside the
    rolled-back validation transaction, or detect that the attached file differs from the path and say the result may be stale.
  • An uncached check endpoint on an init READ_ONLY attach never sees a rename-published update until restart.
    Offer a supported pattern (e.g. a small cached stats endpoint whose populate re-attaches).
  • gc reports nothing_to_expire / 0 bytes while an old incarnation's files are pinned by ANOTHER table's retained
    snapshot; report the pinned bytes and the pinning table (drop-table already reports pinned_by).
  • A skipped concurrent refresh answers HTTP 200 {"status":"already_running"}; consider 409/202.
  • The hook cannot tell that an uncached template reads an alias only a populate template attaches.

Found while working on #211 (Claude Code plugin); not fixed there.

Activity

  1. jrosskopf commented on Nov 21, 2026

    @jrosskopf
    ContributorAuthor

    Fixed and merged in #230 (real-binary integration tests under test/integration/). Skipped refresh is now 409 + Retry-After, GC reports pinned snapshots, validate_only warns on a stale alias (stale-alias detection is Linux-only).

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