laserninja opened a new pull request, #14972:
URL: https://github.com/apache/gravitino/pull/14972

   ### What changes were proposed in this pull request?
   
   Add `JdbcIdempotencyStore` using the existing relational connection pool, 
with committed reservations, claim-token fencing, normalized UUIDv7 keys, 
deadline-based expiry, and bounded cleanup. Add H2/MySQL/PostgreSQL schemas and 
upgrade SQL, configuration, documentation, and database-backed tests.
   
   ### Why are the changes needed?
   
   Share reservations and finalized responses across Iceberg REST replicas and 
retain them across service restarts. Part of #12049; HTTP endpoint integration 
remains in #12474. This change builds independently on main.
   
   Fixes #14971.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Add `jdbc` as an `idempotency-store-type` and `idempotency-cleanup-interval` 
(default `PT5M`), under `gravitino.iceberg-rest.`. JDBC storage requires 
auxiliary mode and the new schema table. The default remains `in-memory`.
   
   Database persistence does not make catalog mutations and response recording 
atomic. A crash after a mutation but before response persistence can still 
allow re-execution.
   
   ### How was this patch tested?
   
   Database behavior tests passed on H2, MySQL, and PostgreSQL, including 
concurrent claims, expired-key replacement, stale-owner fencing, case 
normalization, large response replay after reopening the store, and cleanup 
recovery. The complete Iceberg common (178 tests) and REST server (764 tests) 
unit suites passed on Java 17. Formatting and Javadoc generation passed. The 
new table in the 1.3.0-to-2.0.0 upgrade is exercised separately on all three 
databases. Full deployed HTTP integration and an end-to-end upgrade of 
unrelated metadata tables were not run.
   


-- 
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]

Reply via email to