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


##########
runtime/service/src/main/java/org/apache/polaris/service/task/TaskExecutorImpl.java:
##########
@@ -207,8 +227,12 @@ protected void handleTask(
     }
   }
 
+  @ActivateRequestContext
   protected void handleTaskWithTracing(
       long taskEntityId, CallContext callContext, PolarisEventMetadata 
eventMetadata, int attempt) {
+    // Note: each call to this method runs in a new CDI request context
+    realmContextHolder.set(callContext.getRealmContext());

Review Comment:
   good point - fixed



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