Skip to content

fix(morpc): log backend connect failure cause - #28697

Merged
XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
jiangxinmeng1:fix/issue-27757-preserve-backend-cause
Sep 14, 2026
Merged

XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
jiangxinmeng1:fix/issue-27757-preserve-backend-cause

Conversation

@jiangxinmeng1

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #27757

What this PR does / why we need it:

  • Include the underlying connection error in the existing connect to remote failed log.
  • Preserve the current error propagation, retry behavior, and error classification.
  • Avoid additional log volume by enriching the existing terminal log instead of adding a new log entry.
  • Add a regression test verifying that the terminal log is emitted exactly once and contains the returned
    connection error.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@matrix-meow matrix-meow added the size/S Denotes a PR that changes [10,99] lines label Sep 11, 2026
@mergify mergify Bot added the kind/bug Something isn't working label Sep 11, 2026
@jiangxinmeng1
jiangxinmeng1 force-pushed the fix/issue-27757-preserve-backend-cause branch from 8895fe0 to 9fbf9c3 Compare September 11, 2026 08:36

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head 1ba057f961c1276246480c7362a0f6cac9bf5af6. The additional structured log field preserves the returned error and retry/state behavior, exposes the backend failure cause without adding sensitive data, and is covered by the connection-failure regression. The RLIMIT_AS headroom change preserves the subprocess allocation-failure/ownership assertion without adding a 256 MiB fixture allocation or iteration. No correctness or material test-cost blocker found. Exact-head UT passed (run 34799999981, 51m44s); required CI passed.

@mergify mergify Bot added the queued label Sep 14, 2026
@mergify

mergify Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-09-14 04:50 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🟠 Checks running · in-place
  • 🚫 Left the queue — 2026-09-14 04:59 UTC · at 753d1d80a230cb7c657f2d4fb16569938e7a7426

This pull request spent 9 minutes 29 seconds in the queue, with no time running CI.

Waiting for any of
  • check-neutral = CI Required
  • check-skipped = CI Required
  • check-success = CI Required
All conditions

Reason

Pull request #28697 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.

The author needs to enable "Allow edits from maintainers" on this pull request.

Hint

You 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.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request

@XuPeng-SH
XuPeng-SH merged commit 79a652e into matrixorigin:main Sep 14, 2026
3 of 5 checks passed
@mergify mergify Bot added dequeued and removed queued labels Sep 14, 2026
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

issue matrixorigin#27757

## What this PR does / why we need it:

- Include the underlying connection error in the existing connect to
remote failed log.
- Preserve the current error propagation, retry behavior, and error
classification.
- Avoid additional log volume by enriching the existing terminal log
instead of adding a new log entry.
- Add a regression test verifying that the terminal log is emitted
exactly once and contains the returned
    connection error.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

issue matrixorigin#27757

## What this PR does / why we need it:

- Include the underlying connection error in the existing connect to
remote failed log.
- Preserve the current error propagation, retry behavior, and error
classification.
- Avoid additional log volume by enriching the existing terminal log
instead of adding a new log entry.
- Add a regression test verifying that the terminal log is emitted
exactly once and contains the returned
    connection error.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

issue matrixorigin#27757

## What this PR does / why we need it:

- Include the underlying connection error in the existing connect to
remote failed log.
- Preserve the current error propagation, retry behavior, and error
classification.
- Avoid additional log volume by enriching the existing terminal log
instead of adding a new log entry.
- Add a regression test verifying that the terminal log is emitted
exactly once and contains the returned
    connection error.

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants