Skip to content

[ISSUE #31] Reserve durable Snowflake timestamp windows before issuance - #71

Merged
mxsm merged 1 commit into
developfrom
mxsm/fix-08-timestamp-handoff
Nov 28, 2026
Merged

mxsm merged 1 commit into
developfrom
mxsm/fix-08-timestamp-handoff

Conversation

@mxsm

@mxsm mxsm commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Closes #31

Reserve an inclusive timestamp window before returning IDs. V3 binds the writer's immutable layout and preserves each worker's durable upper bound across owner generations. New owners reject prior ticks and the writer fences stale claims. Retried acknowledgements are idempotent and timestamp reservations commit independently of an embedding caller's transaction.

Local SDK mode uses a worker-scoped, exclusively locked and checksummed record on a persistent volume. Remote-only clients do not open files. The rollout notes cover old workers with unknown history, clock rollback, offline state transfer and writer migration.

Checks on JDK 25 include full Maven clean verify; MySQL 8.4 and PostgreSQL 18 extend the existing ownership suites. Dedicated assertions cover same-second restart, immediate process loss after a commit, failed writes, non-regressing windows, rollback of an outer transaction, conflicting layouts, corrupt state and actual cross-JVM file exclusion. The current merge with the clock-range fix places durability checks after validating the selected timestamp and before committing the sequence.

@mxsm
mxsm merged commit 989c402 into develop Nov 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Protect Snowflake worker handoff with durable timestamp reservations

1 participant