Skip to content

[Bug]: pipeline cleanup fallback masks the original execution error #26322

Closed

Description

@aptend

Is there an existing issue for the same bug?

I have checked the existing issues.

Branch Name

main

Commit ID

a777e80

Actual Behavior

In multi-input pipeline cleanup, an operator can first record the real execution error on a shared PipelineEdge, while another Connector sharing that edge fails to deliver its normal End because Ch2 is already full. Connector.Reset then aborts its spool with ErrPipelineEndSignalDeliveryFailed. A buffered GetFromSpool signal observes that synthetic cleanup error and can return it before the durable original edge error, masking the user-visible error.

Observed in PR #26318 compose BVT job 90243593095. The dedup join correctly produced the expected duplicate-entry error for value 1000000, but the client received internal error: pipeline end signal delivery failed.

Expected Behavior

If a shared PipelineEdge already has a durable terminal error, Connector/Dispatch cleanup must preserve that original error when aborting queued spool work. ErrPipelineEndSignalDeliveryFailed should only be used when no real terminal cause exists.

Steps to Reproduce

  1. Use a shared PipelineEdge with a full Ch2 containing a GetFromSpool signal.
  2. Record a real fatal error on the edge while the channel remains full.
  3. Reset another successful Connector sharing that edge so its End delivery fails.
  4. Consume the buffered spool signal.
  5. Observe ErrPipelineEndSignalDeliveryFailed instead of the original edge error.

Additional information

Related to #26250. That change correctly made fatal terminal wakeup non-blocking and observable through PipelineEdge.Done(), but exposed the existing fallback-error precedence problem. The fix should preserve #26250 liveness behavior and only change cleanup error selection.

CI run: https://github.com/matrixorigin/matrixone/actions/runs/30349542976/job/90243593095?pr=26318

Activity

  1. self-assigned this
    on Jul 28, 2026
  2. added
    kind/bug
    on Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions