FANNG1 commented on code in PR #4261:
URL: https://github.com/apache/gravitino/pull/4261#discussion_r1698165361
##########
core/src/main/java/org/apache/gravitino/GravitinoEnv.java:
##########
@@ -226,6 +226,26 @@ public IdGenerator idGenerator() {
return idGenerator;
}
+ /**
+ * Get the CatalogManager associated with the Gravitino environment.
+ *
+ * @return The CatalogManager instance.
+ */
+ public CatalogManager catalogManager() {
+ Preconditions.checkArgument(catalogManager != null, "GravitinoEnv is not
initialized.");
Review Comment:
could you provide the scene `catalogManager` is not initialized when
accessed? could it really happen?
--
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]