Skip to content

fix(compile): preserve capability probe errors - #30516

Merged
XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/fix-30408-probe-errors
Oct 18, 2026
Merged

XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/fix-30408-probe-errors

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:

Fixes #30408

What this PR does / why we need it:

A failed CN capability probe with a live statement context was discarded and reported as unsupported MORPC protocol. Preserve the original discovery/RPC error in required protocol gates and send-time expression validation, giving statement cancellation precedence after observation. Keep safe local fallback in the three optional placement callers through one shared policy adapter. Actual old peers and unknown capability evidence remain fail-closed at required gates.

The successful path retains the same RPC count and five-second probe budget. No retries, cache, state machine, new wire format, or per-row work is added; additional work is bounded context checks.

Validation (macOS arm64, Go 1.27.1, freshly built native libraries):

  • Full pkg/sql/compile UT and -race -count=1: 1,466 root tests / 3,347 named tests including subtests in each mode; no skips or failures.
  • Existing real two-CN SQL TestIndexSearchScanRefusesOlderCN: healthy distributed results and actual old-peer rejection pass.
  • Incremental SCA for the complete changed-package scope: gofmt, go vet, pinned molint and configured golangci-lint, 0 issues.
  • Regression coverage preserves transport/deadline error identity, optional fallback, parent cancellation, unknown evidence, send-time revalidation and response cleanup.

This fixes error classification, not the unidentified availability trigger behind the nightly's 11 IVF failures. Deadline-error injection verifies cause propagation; it does not simulate expiry of the real five-second timer.

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

@XuPeng-SH

XuPeng-SH commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-xupeng · done

Commit: a778b30023af37cedbcd23081858a9bc7155bfa5

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-xupeng · review

Commit: a778b30023af37cedbcd23081858a9bc7155bfa5

Assessment: approve

Reviewed the complete nine-file delta and affected callers. Required gates preserve probe errors and cancellation precedence, optional placement retains safe fallback, and unknown or older protocol evidence remains fail-closed. No actionable defects remain.

Model: gpt-6-astra / xhigh

Session: 01a14d34-4e51-79a3-a62d-6c9c16279dc8 · slot 0 · generation 0

Validation:

  • Full pkg/sql/compile normal and race suites passed: 1,466 root tests and 3,347 named tests each, with no skips or failures.

  • Five affected cancellation/placement tests passed 100 repetitions each under the race detector.

  • A supplemental two-CN SQL overlay passed healthy execution, lower advertised protocol rejection, real RPC error propagation, actual five-second probe expiry with a live parent, and recovery. The identical probe against merge-base production code reproduced both unsupported-protocol misclassifications.

  • Isolation preflight, current-revision native provenance verification, gofmt/diff checks and go vet passed. Go 1.27.1, Linux amd64, CPU native build.

  • Commands, source fingerprints, terminal exits, logs, overlay inputs and retained binaries reconciled in /home/xupeng/.local/state/mo-bot/jobs/3035d385e099b7331b3c3c5f/attempt-1/final-audit.json and evidence-index.json. Source remains unchanged.

Limitations:

  • Initial linking timeouts and a diagnostic socket-path failure were recovered; they were not product failures. Some recovered checks disabled DWARF output.

  • Frozen CI results were incomplete and author summaries lacked retained execution evidence; neither was counted as validation. Linked issue #30408's body was not supplied; approval covers the declared error-classification fix, not the unidentified nightly availability trigger.

  • The compatibility control used a live CN advertising an older protocol, not an older binary. Throughput was not benchmarked under host pressure; unchanged RPC counts and probe budgets were checked.

@XuPeng-SH

XuPeng-SH commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-xupeng · done

Commit: 5bf8efa9e90305804123284b8c36edd37b9757ce

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-xupeng · review

Commit: 5bf8efa9e90305804123284b8c36edd37b9757ce

Assessment: approve

Reviewed the complete nine-file delta and affected callers. Required gates preserve probe errors and cancellation precedence; optional placement retains safe local fallback. Unknown and older capabilities remain fail-closed. No actionable defects found.

Model: gpt-6-astra / xhigh

Session: 01a14d34-4e51-79a3-a62d-6c9c16279dc8 · slot 0 · generation 0

Validation:

  • Current-head pkg/sql/compile tests passed: 1,466 root tests and 3,347 named tests, including subtests; no skips or failures. An initial dependency-download failure occurred before test execution; the retry passed using the same task caches.

  • Independently reconciled retained evidence and unchanged relevant inputs: five focused race tests passed 100 repetitions each; two-CN SQL checks covered healthy execution, lower advertised protocol rejection, real RPC errors, actual five-second timeout with a live parent, and recovery.

  • Verified that the retained failing base-control implementation matches the current merge-base and reproduces both error misclassifications.

  • Isolation preflight, native provenance verification across 190 inputs, formatting and diff checks passed. Source remains unchanged.

  • Commands, source fingerprints, logs and exit receipts are reconciled in /home/xupeng/.local/state/mo-bot/jobs/304f54260506b61ae340cf5a/attempt-1/final-audit.json and recovered-evidence-audit.json.

Limitations:

  • Retained race and SQL checks were executed on the earlier same-PR head and reused after semantic-input comparison; they were not rerun at this head.

  • Frozen CI remained incomplete and included an Iceberg adapter module-tidy failure without diagnostic logs. CI was not credited as passing validation.

  • Issue #30408's body was absent. Approval covers the declared error-classification fix, not the unidentified nightly availability trigger.

  • Compatibility evidence uses a live CN advertising an older protocol, not an older binary. Throughput was not benchmarked; unchanged RPC counts and probe budgets were verified.

Copy link
Copy Markdown
Contributor Author

Post-merge main functional validation completed at 4226537e5094995155eab9c2a883db649ff7b95b (Linux/amd64, Go 1.27.1, fresh matching CPU/CGo): the original #30408 helper/public-placement reproducer and all nine placement controls pass in normal and race, both exit 0. Eight adjacent discovery/response-cleanup/optional-placement/send-destination roots also pass normal/race. The real two-CN TestIndexSearchScanRefusesOlderCN passes healthy SQL and older advertised protocol rejection.

Transferred the scoped error-classification issue #30408 to Ariznawlll and read back the assignment: #30408 (comment) . This does not qualify the original Wiki 10M/TKE availability trigger, actual five-second timer expiry or old-binary rolling upgrade; 4.2 lacks this vectorscan protocol path. Raw logs, exact commands, overlay and exit receipts retained under /workspace/work/pr-audit-continue18.

This branch was previously deployed

1 inactive deployment
ci — 38546b93 Deployed Oct 18, 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/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: IVF capability-probe failures lose their cause and are misreported as unsupported MORPC protocol

2 participants