This is an automated email from the ASF dual-hosted git repository.

924060929 pushed a commit to branch fe_local_shuffle
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/fe_local_shuffle by this push:
     new cd34ddb7448 [fix](local shuffle) Fix serial AnalyticEval deadlock: 
return NOOP instead of PASSTHROUGH
cd34ddb7448 is described below

commit cd34ddb744840bd3ab81477d1f780c46ae10b12e
Author: 924060929 <[email protected]>
AuthorDate: Thu Apr 23 15:32:59 2026 +0800

    [fix](local shuffle) Fix serial AnalyticEval deadlock: return NOOP instead 
of PASSTHROUGH
    
    Serial AnalyticEvalNode (no PARTITION BY) returned PASSTHROUGH as its
    output type to parent, causing parent's enforceRequire to think the
    requirement was already satisfied. But AnalyticSource pipeline has
    tasks=1 (serial), so the parent (StreamingAGG) never got a PASSTHROUGH
    LE inserted above it → all pipeline tasks=1 → upstream senders with
    4 instances deadlock waiting for response.
    
    Fix: return NOOP so the parent's framework-level serial child check
    inserts PASSTHROUGH LE above AnalyticEval, matching BE native behavior
    where StreamingAGG sees serial AnalyticSource and gets PASSTHROUGH LE.
---
 .../src/main/java/org/apache/doris/planner/AnalyticEvalNode.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/planner/AnalyticEvalNode.java 
b/fe/fe-core/src/main/java/org/apache/doris/planner/AnalyticEvalNode.java
index 524f27eb7a9..09bcee0e337 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/AnalyticEvalNode.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/AnalyticEvalNode.java
@@ -187,7 +187,10 @@ public class AnalyticEvalNode extends PlanNode {
                 newChild = newChild.getChild(0);
             }
             children = Lists.newArrayList(newChild);
-            return Pair.of(this, LocalExchangeType.PASSTHROUGH);
+            // Return NOOP: the serial AnalyticSource pipeline has 1 task, we 
don't provide
+            // fan-out ourselves. The parent's enforceRequire framework-level 
serial check
+            // will see our serial status and insert PASSTHROUGH LE above us 
if needed.
+            return Pair.of(this, LocalExchangeType.NOOP);
         } else if (orderByElements.isEmpty()) {
             if (AddLocalExchange.isColocated(this)) {
                 requireChild = LocalExchangeTypeRequire.requireHash();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to