FANNG1 commented on code in PR #4261:
URL: https://github.com/apache/gravitino/pull/4261#discussion_r1698178388
##########
core/src/main/java/org/apache/gravitino/GravitinoEnv.java:
##########
@@ -220,6 +220,26 @@ public IdGenerator idGenerator() {
return idGenerator;
}
+ /**
+ * Get the CatalogManager associated with the Gravitino environment.
+ *
+ * @return The CatalogManager instance.
+ */
+ public CatalogManager catalogManager() {
+ Preconditions.checkNotNull(catalogManager, "GravitinoEnv is not
initialized.");
+ return catalogManager;
+ }
+
+ /**
+ * Get the EventBus associated with the Gravitino environment.
+ *
+ * @return The EventBus instance.
+ */
+ public EventBus eventBus() {
+ Preconditions.checkNotNull(eventBus, "GravitinoEnv is not initialized.");
Review Comment:
`If the Iceberg REST service disables the modules, it does not need to call
the method.`
+1
--
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]