Repository navigation
Conversation
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? |
|
Thanks for the follow-up verification. The remaining panic was caused by the closed temporary PR #27471 addresses both sides:
The regression now evaluates a SET expression, plans the next statement through the same compiler context, and separately covers a nil process plus nil context. Verified with:
Could you please re-review the new PR against the original multi-statement |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Approved on exact HEAD f88267a.
I traced the temporary ExecCtx ownership through normal return and all early-error paths: the synthetic SELECT still owns and closes its temporary context, while the defer restores the caller context afterward; the planning fallback prevents a nil request context from reaching the tracing helpers.
Independent verification:
|
Queued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 34 minutes 52 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonPull request #27471 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
Failing checks:
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
…matrixorigin#27471) ## What type of PR is this? - [ ] API-change - [ ] BUG - [x] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#26766 ## What this PR does / why we need it: The previous fix guarded a released compiler process, but a nested synthetic SELECT used for `SET @user_var = expr` could still leave the session compiler context pointing at a closed `ExecCtx`. A later `EXECUTE` in the same `CLIENT_MULTI_STATEMENTS` packet then observed a nil request context and panicked in `context.WithValue` while attaching plan counters. This change: - restores the caller's `TxnCompilerContext` after synthetic SET-expression evaluation; - falls back to the current request (or `context.Background()` as a final defensive fallback) before attaching build-plan counters; - adds regressions for the nil process/nil context path and for planning the next statement after SET evaluation. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…matrixorigin#27471) ## What type of PR is this? - [ ] API-change - [ ] BUG - [x] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#26766 ## What this PR does / why we need it: The previous fix guarded a released compiler process, but a nested synthetic SELECT used for `SET @user_var = expr` could still leave the session compiler context pointing at a closed `ExecCtx`. A later `EXECUTE` in the same `CLIENT_MULTI_STATEMENTS` packet then observed a nil request context and panicked in `context.WithValue` while attaching plan counters. This change: - restores the caller's `TxnCompilerContext` after synthetic SET-expression evaluation; - falls back to the current request (or `context.Background()` as a final defensive fallback) before attaching build-plan counters; - adds regressions for the nil process/nil context path and for planning the next statement after SET evaluation. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…matrixorigin#27471) ## What type of PR is this? - [ ] API-change - [ ] BUG - [x] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#26766 ## What this PR does / why we need it: The previous fix guarded a released compiler process, but a nested synthetic SELECT used for `SET @user_var = expr` could still leave the session compiler context pointing at a closed `ExecCtx`. A later `EXECUTE` in the same `CLIENT_MULTI_STATEMENTS` packet then observed a nil request context and panicked in `context.WithValue` while attaching plan counters. This change: - restores the caller's `TxnCompilerContext` after synthetic SET-expression evaluation; - falls back to the current request (or `context.Background()` as a final defensive fallback) before attaching build-plan counters; - adds regressions for the nil process/nil context path and for planning the next statement after SET evaluation. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
issue #26766
What this PR does / why we need it:
The previous fix guarded a released compiler process, but a nested synthetic SELECT used for
SET @user_var = exprcould still leave the session compiler context pointing at a closedExecCtx. A laterEXECUTEin the sameCLIENT_MULTI_STATEMENTSpacket then observed a nil request context and panicked incontext.WithValuewhile attaching plan counters.This change:
TxnCompilerContextafter synthetic SET-expression evaluation;context.Background()as a final defensive fallback) before attaching build-plan counters;