Skip to content

Preserve mixed COS read failures and bound reader cancellation logs - #32947

Merged
XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
XuPeng-SH:fix/main-cos-read-cancellation
Nov 20, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
XuPeng-SH:fix/main-cos-read-cancellation

Conversation

@XuPeng-SH

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:

Related to #32389 and the 4.2-dev fix #32945.

What this PR does / why we need it:

Main already restores ordinary COS read cancellation identity through #28070. The read-only adapter's singleton retry wrapper check can also match a cancellation nested inside an aggregate and discard a sibling storage failure. Walk the single-error unwrap chain to preserve pure wrapped cancellations and retain aggregate errors.

Route matching reader context cancellations through the existing bounded DEBUG event contract. Real reader failures use a bounded ERROR event carrying the concrete error type and the reader context status. Derived fields are formatted after log-level and rate checks.

The existing in-flight HTTP tests pass on main. The new wrapped aggregate regression fails with main's original adapter and passes with this change. The 4.2-dev nightly reproduction is related context. It has no logged concrete Go error type and does not establish that the aggregate occurred there.

Local race validation passed on fileservice and readutil with Go 1.27.1.
The repository SCA selector chose the full scan. Molint and golangci-lint passed.

@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 →

@mergify

mergify Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@XuPeng-SH

XuPeng-SH commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: c72a481f786e87a8ae95649b1998a8f7e2ef4087

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

mo-bot review · mo-bot-local · review

Commit: c72a481f786e87a8ae95649b1998a8f7e2ef4087

Assessment: approve

The COS adapter preserves joined storage failures while still recognizing ordinary request cancellation. Reader logs use separate rate limits for matching cancellations and failures. The pipeline retains authority over the query outcome.

Model: gpt-6.2-sol / xhigh

Session: 01a1f0a0-5126-78f3-9ab8-ef4e87f2f119 · slot 0 · generation 3

Validation:

  • The joined-error regression passed on this head. The merge-base adapter returned only context.Canceled for the same injected error.

  • The in-flight COS cancellation test passed 100 times under race. Focused fileservice and pipeline tests and the full readutil and logutil packages also passed under race.

  • A reader probe verified returned error identity, cleanup, and separate DEBUG and ERROR log budgets. Isolation preflight, the native build, and git diff --check passed. Logs and receipts are indexed in validation-reconciliation.json.

Limitations:

  • The aggregate was injected at the adapter boundary. The archived 4.2-dev nightly logs leave its original error type and cause unconfirmed.

  • Build and test jobs were pending in the frozen CI snapshot.

This branch was previously deployed

1 inactive deployment
ci — 72c1cf65 Deployed Nov 20, 2026 by XuPeng-SH
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