lasdf1234 commented on PR #14972: URL: https://github.com/apache/gravitino/pull/14972#issuecomment-7090307427
**Re: `IdempotencyStoreFactory` and module placement** `IdempotencyStoreFactory` currently lives in `iceberg-common` and hardcodes the JDBC implementation as a fully-qualified class name string, because `JdbcIdempotencyStore` is in `iceberg-rest-server` and common cannot reference it at compile time. That split does not match how we wire similar short-name factories in this project. `IcebergConfigProviderFactory` (and its static/dynamic providers) all live in `iceberg-rest-server` and use `Xxx.class.getCanonicalName()` for the built-in aliases. Idempotency storage is only used by the Iceberg REST server. Suggestion: move the store stack into `iceberg-rest-server` as well: - `IdempotencyStore`, `IdempotencyRecord`, `IdempotencyKeys` - `InMemoryIdempotencyStore`, `JdbcIdempotencyStore` (already here) - `IdempotencyStoreFactory` - and their unit tests Then the factory can map both `"in-memory"` and `"jdbc"` with `.getCanonicalName()`, with no cross-module FQCN string and no startup `register` API. `IcebergConfig` keys can stay in `iceberg-common`. -- 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]
