yangzhg commented on a change in pull request #7198:
URL: https://github.com/apache/incubator-doris/pull/7198#discussion_r762680407
##########
File path: be/src/exec/olap_scan_node.cpp
##########
@@ -1503,6 +1505,7 @@ void OlapScanNode::scanner_thread(OlapScanner* scanner) {
_scan_batch_added_cv.notify_one();
_scan_thread_exit_cv.notify_one();
LOG(INFO) << "Scan thread cancelled, cause query done, scan thread
started to exit";
+ thread_local_ctx.unattach_query();
Review comment:
```suggestion
thread_local_ctx.detach_query();
```
--
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]