laserninja opened a new pull request, #14927: URL: https://github.com/apache/gravitino/pull/14927
### What changes were proposed in this pull request? Add the Idempotency-Key storage SPI, UUIDv7 validation and canonicalization, immutable records, an in-memory store, and a configurable store factory. Claim tokens fence stale finalize/release calls; expiry follows each record's deadline. Replaces #12470 at reviewer request, with identical code including all review fixes. Endpoint integration remains in #12474; the JDBC store is a separate follow-up. ### Why are the changes needed? Provide the storage foundation for replaying responses when clients retry Iceberg mutations, and an interface for a future shared, durable backend. Part of #12049. ### Does this PR introduce _any_ user-facing change? Adds four configuration properties under `gravitino.iceberg-rest.`: `idempotency-enabled` (default `false`), `idempotency-key-lifetime` (`PT30M`), `idempotency-store-type` (`in-memory`), and `idempotency-max-entries` (`10000`). No endpoint behavior changes until #12474 lands. The in-memory store is best-effort: capacity eviction can remove in-flight reservations and allow duplicate execution. This limitation is documented explicitly. ### How was this patch tested? Ran `./gradlew spotlessApply` and `./gradlew :iceberg:iceberg-common:test -PskipITs` on JDK 17: 174 tests passed. Coverage includes concurrent reservation, UUID case normalization, claim fencing, expiry, binding preservation, and factory cleanup. Initialization cleanup and exact-cutoff purge regression tests failed before their fixes and passed afterward. -- 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]
