yuqi1129 commented on code in PR #9574:
URL: https://github.com/apache/gravitino/pull/9574#discussion_r2666990477
##########
core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java:
##########
@@ -1255,4 +1213,42 @@ private CatalogEntity
convertFilesetCatalogEntity(CatalogEntity entity) {
// If the provider is not "hadoop", we assume it is already a fileset
catalog entity.
return entity;
}
+
+ public void updateCatalogProperty(
Review Comment:
modified
##########
core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java:
##########
@@ -555,18 +541,14 @@ public void testConnection(
public void enableCatalog(NameIdentifier ident)
throws NoSuchCatalogException, CatalogNotInUseException {
NameIdentifier metalakeIdent =
NameIdentifier.of(ident.namespace().levels());
-
TreeLockUtils.doWithTreeLock(
metalakeIdent,
LockType.WRITE,
() -> {
- checkMetalake(metalakeIdent, store);
+ BaseCatalog baseCatalog = loadCatalogAndWrap(ident).catalog();
+ baseCatalog.checkMetalakeInUse();
Review Comment:
modified
--
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]