yuqi1129 commented on PR #11846:
URL: https://github.com/apache/gravitino/pull/11846#issuecomment-6796739523

   Hi @JoegenUSTC, would you have time to update this PR? I rechecked the 
current head (`fd0d8fdb4e`). The earlier concerns about holding the wrapper 
lock across backend I/O and retrying arbitrary `IllegalStateException`s have 
been addressed, but I found two remaining issues:
   
   1. **Preserve canonical names returned by list operations.** The new result 
normalization in Table, View, Fileset, and Partition dispatchers treats backend 
names as fresh user input. For a capability that preserves quoted names, 
creating `"My Table"` stores `My Table`, but listing now returns `MY TABLE`; 
quoting that result again addresses a different name. Restoring the original 
table and partition round-trip assertions reproduces both failures. Changing 
those assertions to uppercase masks the regression. Please keep list results 
unchanged and restore the original assertions. See 
[TableNormalizeDispatcher](https://github.com/apache/gravitino/blob/fd0d8fdb4e123652bd05ff1672a1770b2ff6774b/core/src/main/java/org/apache/gravitino/catalog/TableNormalizeDispatcher.java#L56)
 and the equivalent list paths.
   
   2. **Complete the capability lifecycle migration.** 
[`capabilities()`](https://github.com/apache/gravitino/blob/fd0d8fdb4e123652bd05ff1672a1770b2ff6774b/core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java#L303)
 still returns the raw object after releasing the lock. 
`CatalogManager.isManagedStorageCatalog()`, 
`TableOperationDispatcher.alterTable()`, and 
`ViewOperationDispatcher.alterView()` still invoke capability methods outside 
that protection. A controlled reproduction using a real `IsolatedClassLoader` 
and latches still produces `NoClassDefFoundError` in the 
`isManagedStorageCatalog()` path when the wrapper closes before a helper class 
is loaded.
   
   Could you move the remaining capability computations inside 
`doWithCapabilityOps` / `withCapability`, returning only computed results, 
while keeping backend operations outside both the lock and the retry callback? 
Removing the raw accessor after migrating its consumers would also help prevent 
this from recurring. Please add regression coverage for these paths and update 
the PR description, which currently says `isManagedStorageCatalog()` has 
already been migrated.
   
   For validation, 231 selected existing tests passed locally; the restored 
name-preservation assertions and the separate real-classloader reproduction 
exposed the issues above. I did not run the full core suite or external-system 
integration tests.
   


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