jerryshao commented on code in PR #9502:
URL: https://github.com/apache/gravitino/pull/9502#discussion_r2650797116
##########
core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java:
##########
@@ -893,6 +894,15 @@ private boolean getCatalogInUseValue(EntityStore store,
NameIdentifier catalogId
}
}
+ private boolean isManagedCatalog(CatalogWrapper catalogWrapper) {
+ try {
+ return
catalogWrapper.capabilities().managedStorage(Capability.Scope.CATALOG).supported();
+ } catch (Exception e) {
+ LOG.warn("Failed to get capabilities for catalog, assuming not managed",
e);
+ return false;
Review Comment:
Seems this will not throw an exception, but the method signature has defined
an exception. Let me fix it.
--
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]