Repository navigation
Description
Description
TPC-DS 1 TB query74 fails on current MatrixOne main with internal error: pipeline end signal delivery failed. Unlike the previously fixed error-masking case in #26322, no earlier query execution error or memory-budget rejection was found in the server logs for this query window.
Environment
- Branch:
main - Commit:
e31ee06042bc708ac5620a579715e07ec31c21b6 - Deployment: 129 single node / one CN, TPC-DS SF=1000 (1 TB)
- Run: https://github.com/matrixorigin/mo-auto-test/actions/runs/30991050343
- Job: https://github.com/matrixorigin/mo-auto-test/actions/runs/30991050343/job/92258474435
- Query window: 2026-08-05 16:10:32–16:16:58 CST
Steps to reproduce
Load TPC-DS SF=1000 and execute the exact generated SQL:
with year_total as (
select c_customer_id customer_id
,c_first_name customer_first_name
,c_last_name customer_last_name
,d_year as year
,max(ss_net_paid) year_total
,'s' sale_type
from customer
,store_sales
,date_dim
where c_customer_sk = ss_customer_sk
and ss_sold_date_sk = d_date_sk
and d_year in (2001,2001+1)
group by c_customer_id
,c_first_name
,c_last_name
,d_year
union all
select c_customer_id customer_id
,c_first_name customer_first_name
,c_last_name customer_last_name
,d_year as year
,max(ws_net_paid) year_total
,'w' sale_type
from customer
,web_sales
,date_dim
where c_customer_sk = ws_bill_customer_sk
and ws_sold_date_sk = d_date_sk
and d_year in (2001,2001+1)
group by c_customer_id
,c_first_name
,c_last_name
,d_year
)
select * from ( select
t_s_secyear.customer_id, t_s_secyear.customer_first_name, t_s_secyear.customer_last_name
from year_total t_s_firstyear
,year_total t_s_secyear
,year_total t_w_firstyear
,year_total t_w_secyear
where t_s_secyear.customer_id = t_s_firstyear.customer_id
and t_s_firstyear.customer_id = t_w_secyear.customer_id
and t_s_firstyear.customer_id = t_w_firstyear.customer_id
and t_s_firstyear.sale_type = 's'
and t_w_firstyear.sale_type = 'w'
and t_s_secyear.sale_type = 's'
and t_w_secyear.sale_type = 'w'
and t_s_firstyear.year = 2001
and t_s_secyear.year = 2001+1
and t_w_firstyear.year = 2001
and t_w_secyear.year = 2001+1
and t_s_firstyear.year_total > 0
and t_w_firstyear.year_total > 0
and case when t_w_firstyear.year_total > 0 then t_w_secyear.year_total / t_w_firstyear.year_total else null end
> case when t_s_firstyear.year_total > 0 then t_s_secyear.year_total / t_s_firstyear.year_total else null end
order by 2,1,3
) where rownum <= 100;Actual behavior
The query failed after 385.782 seconds:
ERROR 20101 (HY000) at line 1: internal error: pipeline end signal delivery failed
Server logs contain the same terminal error twice at 16:16:58.367 CST. During the query:
- pipeline MPool peak was about 17.001 GiB;
- no
out of memory, HashBuild budget rejection, join-spill allocation rejection, panic, or service restart was found; - one
propose tick failed: timeoutentry appeared, but it did not identify an earlier SQL execution error.
Expected behavior
The supported TPC-DS query should finish and return its result. Pipeline cleanup/termination must not fail to deliver the terminal signal or replace query completion with an internal error.
Stability and controls
- Reproducer: observed in one official full TPC-DS SF=1000 run; no manual rerun before filing.
- Control: 84 of 99 queries completed successfully in the same run.
- Failure state: MatrixOne remained alive and subsequent queries continued.
Evidence
- Actions run/job linked above.
- Exact generated SQL and
query74.errare in the run'stpcds-resultartifact. - Loki logs for host
10-222-1-129show the two terminal errors and the 17.001 GiB pipeline MPool peak.
Code analysis
The failure is in pipeline terminal-signal delivery/cleanup, not the 40 GiB query memory ceiling. #26322 fixed a case where this synthetic cleanup error masked an already-recorded original error. This occurrence is on a newer main commit and has no earlier durable execution error in the query window, so either terminal delivery can still fail independently or the original cause is not being preserved/logged.
Regression coverage
Add a focused pipeline lifecycle regression for the query74 multi-input plan shape. It should verify successful terminal delivery, preserve any original execution error, and check cleanup after completion/cancellation.
Related
- Source run: https://github.com/matrixorigin/mo-auto-test/actions/runs/30991050343
- Prior closed error-masking issue: [Bug]: pipeline cleanup fallback masks the original execution error #26322
- Historical TPC-DS query74 OOM issue (different cause): [Bug]: [tpcds] mo crashed by oom for query4/query11/query74 of tpcds with 1G scale data on standlone mode #18151
Activity
fix(pipeline): make terminal completion durable and preserve root err…
fix(pipeline): make terminal completion durable and preserve root err…
fix(pipeline): make terminal completion durable and preserve root err…
fix(pipeline): make terminal completion durable and preserve root err…