Skip to content

fix(table): validate snapshot timestamp drift#3443

Open
GayathriSrividya wants to merge 4 commits into
apache:mainfrom
GayathriSrividya:fix/issue-2938-snapshot-timestamp-validity
Open

fix(table): validate snapshot timestamp drift#3443
GayathriSrividya wants to merge 4 commits into
apache:mainfrom
GayathriSrividya:fix/issue-2938-snapshot-timestamp-validity

Conversation

@GayathriSrividya
Copy link
Copy Markdown

Rationale

Align snapshot timestamp validation with the Java and Rust implementations by rejecting timestamps that drift backwards by more than one minute. Small clock skew remains allowed.

This also validates parsed table metadata:

  • snapshot-log entries remain sorted within the one-minute tolerance
  • last-updated-ms is not more than one minute behind the latest snapshot-log entry

Attribution

This revives the implementation from #3062 by @mrutunjay-kinagi. I cherry-picked the original authored commits onto the latest main, preserving authorship, and am reopening it because the earlier PR was closed automatically after inactivity. It includes the metadata-level validation added in response to @Fokko's review.

Verification

  • make lint
  • make test (3713 passed, 1534 deselected)

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.

2 participants