dimas-b commented on code in PR #2161: URL: https://github.com/apache/polaris/pull/2161#discussion_r2226414635
########## persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/JdbcMetaStoreManagerFactory.java: ########## @@ -212,7 +211,7 @@ public synchronized Supplier<BasePersistence> getOrCreateSessionSupplier( checkPolarisServiceBootstrappedForRealm( realmContext, metaStoreManagerMap.get(realmContext.getRealmIdentifier())); } - return sessionSupplierMap.get(realmContext.getRealmIdentifier()); + return sessionSupplierMap.get(realmContext.getRealmIdentifier()).get(); Review Comment: nit: previously the `.get()` call was outside the `synchronized` block... not sure it matters, though :thinking: -- 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: issues-unsubscr...@polaris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org