jerryshao commented on code in PR #5002:
URL: https://github.com/apache/gravitino/pull/5002#discussion_r1806251476
##########
core/src/main/java/org/apache/gravitino/GravitinoEnv.java:
##########
@@ -130,21 +132,30 @@ public static GravitinoEnv getInstance() {
}
/**
- * Initialize the Gravitino environment.
+ * Initialize base components, used for Iceberg REST server.
*
* @param config The configuration object to initialize the environment.
- * @param isGravitinoServer A boolean flag indicating whether the
initialization is for the
- * Gravitino server. If true, server-specific components will be
initialized in addition to
- * the base components.
*/
- public void initialize(Config config, boolean isGravitinoServer) {
- LOG.info("Initializing Gravitino Environment...");
+ public void initializeBaseComponents(Config config) {
+ LOG.info("Initializing Gravitino base environment...");
this.config = config;
+ this.manageFullComponents = false;
initBaseComponents();
- if (isGravitinoServer) {
- initGravitinoServerComponents();
- }
- LOG.info("Gravitino Environment is initialized.");
+ LOG.info("Gravitino base environment is initialized.");
+ }
+
+ /**
+ * Initialize all components, used for Gravitino server.
+ *
+ * @param config The configuration object to initialize the environment.
+ */
+ public void initializeFullComponents(Config config) {
+ LOG.info("Initializing Gravitino full Environment...");
Review Comment:
"environment..."
--
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]