Skip to content

[Bug]: TPC-DS 1TB Q74 fails with pipeline end signal delivery failed #26743

Closed

Description

@Ariznawlll

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

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: timeout entry 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.err are in the run's tpcds-result artifact.
  • Loki logs for host 10-222-1-129 show 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

Activity

  1. added this to the MO-202608 milestone on Aug 6, 2026
  2. added
    kind/bug
    on Aug 6, 2026
  3. added theissue type on Aug 6, 2026
  4. self-assigned this
    on Aug 6, 2026
  5. added
    severity/s0
    and removed on Aug 6, 2026
  6. self-assigned this
    on Aug 7, 2026
  7. removed their assignment
    on Aug 10, 2026
  8. added a commit that references this issue on Aug 12, 2026
    fe62a8f
  9. added 3 commits that reference this issue on Sep 17, 2026
    1c65af0
    e888cf6
    947f906
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions