Anurag-S1ngh opened a new pull request, #19246: URL: https://github.com/apache/iceberg/pull/19246
## Summary - Metadata timestamp validation used a hardcoded one minute tolerance. Valid commits fail when clocks differ by more than a minute across clusters. - The tolerance is now read from `iceberg.commit.allowed-clock-skew-ms`, or `ICEBERG_COMMIT_ALLOWED_CLOCK_SKEW_MS` as an environment variable, through the existing `SystemConfigs` mechanism. The default stays at 60000 ms. ## Changes - `SystemConfigs`: add `COMMIT_ALLOWED_CLOCK_SKEW_MS` and a package-private reset for tests. - `TableMetadata`: use the configured tolerance for the snapshot log, previous metadata log, and last updated timestamp checks. - `TestTableMetadata`: verify the default rejects a two minute skew and that a five minute override accepts it. ## Testing - `./gradlew :iceberg-core:test --tests "org.apache.iceberg.TestTableMetadata"` passes. - The new test fails without the change. - `spotlessApply` run for the module. Closes #17285 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
