snazy commented on code in PR #3210:
URL: https://github.com/apache/polaris/pull/3210#discussion_r2592896167
##########
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:
Actually, the realm-ID needs to be extracted earlier in `tryHandleTask`
outside the async schedule
--
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]