Repository navigation
[ISSUE #33] Enforce Snowflake timestamp bounds at startup and issuance - #63
Merged
Merged
Conversation
mxsm
force-pushed
the
mxsm/fix-10-timestamp-range
branch
from
November 28, 2026 11:35
4abba94 to
443e831
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.