Repository navigation
fix(pipeline): preserve terminal cause during spool abort - #26324
Conversation
70e78e7 to
65ad385
Compare
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep-reviewed the cleanup lifecycle and failure precedence at the latest head. The change preserves a durable receiver-edge cause before aborting queued spool work, retains the synthetic delivery error only as fallback, keeps first-fatal-wins semantics, adds no normal data-path cost, and does not extend the bounded send budget. Race tests for process, connector, and dispatch pass. No blocker found.
Merge Queue Status
This pull request spent 1 hour 10 minutes 1 second in the queue, including 40 minutes 19 seconds running CI. Required conditions to merge
|
…in#26324) When normal End delivery fails on a shared `PipelineEdge` that already records a real terminal error, Connector or Dispatch cleanup currently aborts its spool with `ErrPipelineEndSignalDeliveryFailed`. Buffered spool signals can then surface that synthetic cleanup error before the durable execution error. This change resolves the spool abort cause from receiver edges first and only falls back to `ErrPipelineEndSignalDeliveryFailed` when no more specific terminal error exists. It keeps the terminal wakeup and bounded cleanup behavior from matrixorigin#26250 unchanged. Validation: - focused Connector regression with `-race -count=20` - `go test -race -count=1 ./pkg/vm/process ./pkg/sql/colexec/connector ./pkg/sql/colexec/dispatch` - `go test -count=1 ./pkg/vm/pipeline` - `go build` and `go vet` for all changed packages plus `pkg/vm/pipeline` Approved by: @XuPeng-SH
…in#26324) When normal End delivery fails on a shared `PipelineEdge` that already records a real terminal error, Connector or Dispatch cleanup currently aborts its spool with `ErrPipelineEndSignalDeliveryFailed`. Buffered spool signals can then surface that synthetic cleanup error before the durable execution error. This change resolves the spool abort cause from receiver edges first and only falls back to `ErrPipelineEndSignalDeliveryFailed` when no more specific terminal error exists. It keeps the terminal wakeup and bounded cleanup behavior from matrixorigin#26250 unchanged. Validation: - focused Connector regression with `-race -count=20` - `go test -race -count=1 ./pkg/vm/process ./pkg/sql/colexec/connector ./pkg/sql/colexec/dispatch` - `go test -count=1 ./pkg/vm/pipeline` - `go build` and `go vet` for all changed packages plus `pkg/vm/pipeline` Approved by: @XuPeng-SH
…in#26324) When normal End delivery fails on a shared `PipelineEdge` that already records a real terminal error, Connector or Dispatch cleanup currently aborts its spool with `ErrPipelineEndSignalDeliveryFailed`. Buffered spool signals can then surface that synthetic cleanup error before the durable execution error. This change resolves the spool abort cause from receiver edges first and only falls back to `ErrPipelineEndSignalDeliveryFailed` when no more specific terminal error exists. It keeps the terminal wakeup and bounded cleanup behavior from matrixorigin#26250 unchanged. Validation: - focused Connector regression with `-race -count=20` - `go test -race -count=1 ./pkg/vm/process ./pkg/sql/colexec/connector ./pkg/sql/colexec/dispatch` - `go test -count=1 ./pkg/vm/pipeline` - `go build` and `go vet` for all changed packages plus `pkg/vm/pipeline` Approved by: @XuPeng-SH
What type of PR is this?
Which issue(s) this PR fixes:
fixes #26322
What this PR does / why we need it:
When normal End delivery fails on a shared
PipelineEdgethat already records a real terminal error, Connector or Dispatch cleanup currently aborts its spool withErrPipelineEndSignalDeliveryFailed. Buffered spool signals can then surface that synthetic cleanup error before the durable execution error.This change resolves the spool abort cause from receiver edges first and only falls back to
ErrPipelineEndSignalDeliveryFailedwhen no more specific terminal error exists. It keeps the terminal wakeup and bounded cleanup behavior from #26250 unchanged.Validation:
-race -count=20go test -race -count=1 ./pkg/vm/process ./pkg/sql/colexec/connector ./pkg/sql/colexec/dispatchgo test -count=1 ./pkg/vm/pipelinego buildandgo vetfor all changed packages pluspkg/vm/pipeline