Skip to content

Core: Make Metadata Timestamp Clock Skew Configurable#17286

Open
chandrasekhar-188k wants to merge 1 commit into
apache:mainfrom
chandrasekhar-188k:br_timesync
Open

Core: Make Metadata Timestamp Clock Skew Configurable#17286
chandrasekhar-188k wants to merge 1 commit into
apache:mainfrom
chandrasekhar-188k:br_timesync

Conversation

@chandrasekhar-188k

@chandrasekhar-188k chandrasekhar-188k commented Jul 18, 2026

Copy link
Copy Markdown

Make Metadata Timestamp Clock Skew Configurable
fixes: #17285

@github-actions github-actions Bot added the core label Jul 18, 2026
Comment on lines +74 to +77
static final String CLOCK_SKEW_TOLERANCE_MS_PROPERTY =
"iceberg.table-metadata.clock-skew-tolerance-ms";

private static final long DEFAULT_CLOCK_SKEW_TOLERANCE_MS = ONE_MINUTE;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whats the motivation for doing this ?

heads up in v4 we need to have monotonic timestamps

cc @stevenzwu

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in deployments where multiple compute engines (for example, Spark, Flink, Trino, or custom applications) operate on the same Iceberg table from different clusters, temporary clock skew greater than one minute can occur despite otherwise healthy deployments. In such cases, valid commits may fail because the metadata timestamp appears to be too far in the future relative to the committing process. we have observed this issue in some of our deployments.

@singhpk234
singhpk234 requested a review from stevenzwu July 18, 2026 17:25
@chandrasekhar-188k chandrasekhar-188k changed the title Make Metadata Timestamp Clock Skew Configurable Core: Make Metadata Timestamp Clock Skew Configurable Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make Metadata Timestamp Clock Skew Configurable

2 participants