flyrain commented on code in PR #158:
URL: https://github.com/apache/polaris/pull/158#discussion_r1737288501
##########
polaris-service/src/main/java/org/apache/polaris/service/PolarisApplication.java:
##########
@@ -288,7 +289,7 @@ public void run(PolarisApplicationConfig configuration,
Environment environment)
// different processes
// and in-memory state will be lost b/w invocation of bootstrap command
and running a server
if (metaStoreManagerFactory instanceof
InMemoryPolarisMetaStoreManagerFactory) {
-
metaStoreManagerFactory.getOrCreateMetaStoreManager(configuration::getDefaultRealm);
+
metaStoreManagerFactory.bootstrapRealms(List.of(configuration.getDefaultRealm()));
}
Review Comment:
I understand that we want to explicitly bootstrap in test, which applies to
both in-memory and eclipse-link. But this place is a bit different. I was
wondering if there is a better way to handle bootstrapping here. Ideally, it
should be an internal operation within
`InMemoryPolarisMetaStoreManagerFactory`. To be clear, it isn't a blocker for
me. We can figure out a better later.
--
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]