dimas-b commented on code in PR #1817:
URL: https://github.com/apache/polaris/pull/1817#discussion_r2130558285


##########
quarkus/service/src/test/java/org/apache/polaris/service/quarkus/admin/PolarisAuthzTestBase.java:
##########
@@ -242,11 +238,16 @@ public void before(TestInfo testInfo) {
             diagServices,
             configurationStore,
             clock);
-    this.entityManager = 
realmEntityManagerFactory.getOrCreateEntityManager(realmContext);
-
     callContext = polarisContext;
     CallContext.setCurrentContext(callContext);
 
+    metaStoreManager = 
managerFactory.getOrCreateMetaStoreManager(realmContext);

Review Comment:
   the real change is moving `CallContext.setCurrentContext(callContext)` 
above, but GH formats it strangely :sweat_smile: 
   
   `CallContext.setCurrentContext` must happen earlier to make sure "thread 
local" stuff is aligned with CDI context.



-- 
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]

Reply via email to