Skip to content

[ISSUE #33] Enforce Snowflake timestamp bounds at startup and issuance - #63

Merged
mxsm merged 1 commit into
developfrom
mxsm/fix-10-timestamp-range
Nov 28, 2026
Merged

mxsm merged 1 commit into
developfrom
mxsm/fix-10-timestamp-range

Conversation

@mxsm

@mxsm mxsm commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Closes #33

Validate both ends of the timestamp field when local generators start and after waiting for an available tick. Both millisecond and second generators refuse an out-of-range reading before publishing generator state. The public server maps the existing UID_UNAVAILABLE code to HTTP 503. Remote-only SDK clients do not validate the local clock at startup.

JDK 25 verification: the complete Maven wrapper clean verify reactor passed on the PostgreSQL 18/MySQL 8.4 baseline. New clock-controlled tests cover epoch−1, epoch, the last valid tick, the first invalid tick, exhaustion during a sequence wait and the 32/19/12 millisecond layout.

@mxsm
mxsm force-pushed the mxsm/fix-10-timestamp-range branch from 4abba94 to 443e831 Compare November 28, 2026 11:35
@mxsm
mxsm merged commit e7ca079 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.

Validate Snowflake timestamp bounds for both precision modes

1 participant