seawinde commented on code in PR #50895:
URL: https://github.com/apache/doris/pull/50895#discussion_r2230371118
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/MTMV.java:
##########
@@ -196,9 +196,10 @@ public void addTaskResult(MTMVTask task, MTMVRelation
relation,
// The replay thread may not have initialized the catalog yet
to avoid getting stuck due
// to connection issues such as S3, so it is directly set to
null
if (!isReplay) {
+ ConnectContext currentContext = ConnectContext.get();
Review Comment:
this place would make sure the method `MTMVPlanUtil.createMTMVContext(this)`
would not change current thread local connectContext
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]