yuqi1129 commented on PR #11846: URL: https://github.com/apache/gravitino/pull/11846#issuecomment-6820531866
Hi @JoegenUSTC, I updated this branch directly, since it conflicted with main after #12404 added catalog leases. Merge commit b7d03364f2 resolves the conflicts, and 00353330b9 reworks the fix on top of the lease. The PR description now matches the code. About my earlier comment: 1. **List names**: fixed. List results are no longer normalized. Main already keeps them as the catalog returns them, and the original round-trip assertions are back. 2. **Capability escape**: fixed. `getCapability` is replaced by `withCapability`, which uses the capability only under the lease and returns only the computed value. All normalize dispatchers and `normalizeMetadataIdentifier` use it. The `isManagedStorageCatalog` and `alterTable`/`alterView` paths I mentioned already run under a lease on main. The `synchronized` `doWithCapabilityOps`/`close()`, `CatalogWrapperClosedException` and `TestCatalogWrapperConcurrency` are removed, because the lease covers them. Your Hive and Glue `if`/`else` change and its tests are kept. Please take a look and tell me if anything is off. -- 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]
