hello-stephen commented on code in PR #71335:
URL: https://github.com/apache/doris/pull/71335#discussion_r4787207253
##########
be/src/exec/pipeline/pipeline_task.cpp:
##########
@@ -350,12 +350,22 @@ bool PipelineTask::_is_blocked() {
});
}
-void PipelineTask::unblock_all_dependencies() {
+void PipelineTask::unblock_all_dependencies(std::optional<PipelineId>
downstream_pipeline) {
// Keep dependency pointers and task-owned operator/shared state stable
because set_ready() may
// synchronously call wake_up() and submit this task.
std::unique_lock<std::mutex> lock(_dependency_lifecycle_lock);
auto fragment = _fragment_context.lock();
if (!is_finalized() && fragment) {
+ if (downstream_pipeline) {
+ // A hash join can finish probing an empty partition while its
build task is still
+ // synchronizing RF sizes. Keep the build's normal close and
publication path alive.
+ if (std::ranges::any_of(_finish_dependencies, [](const Dependency*
dep) {
+ return dep->must_finish_after_downstream_closes();
+ })) {
+ return;
Review Comment:
[P2] Keep a fallback for ignored runtime-filter size-sync failures
With `ignore_runtime_filter_error=true`, the initial size report can succeed
and the separate `sync_filter_size` RPC can fail. For example, the producer
BE's light RPC pool can reject the reply. The merge node only logs the
rejection, and the successful size-report acknowledgement leaves the producer's
finish dependency counted. When the empty build's local probe closes, this
return bypasses the previous forced unblock. The build and its fragment stay
pending until query-level cleanup. Give the preserved wait a bounded failure
path that releases the dependency and disables the filter when size sync cannot
finish.
--
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]