Repository navigation
[4.2-dev] test(morpc): stabilize blackholed timeout tests - #33122
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? |
|
This pull request is merged. |
2f0f8d9 to
76a8f2c
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? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 76a8f2cee5991b854a0909164f935a4712168076
Assessment: approve
Waiting for peer receipt before expiring the request removes the short-deadline race from the test setup. The revised tests still verify that the backend probes and drains after the last Future is removed, and that continuous writes cannot postpone the probe.
Model: gpt-6.2-sol / xhigh
Session: 01a1f0a0-5126-78f3-9ab8-ef4e87f2f119 · slot 0 · generation 3
Validation:
-
Each affected test passed 100 race-enabled repetitions. The full MORPC package passed with -race -short -tags matrixone_test on Go 1.27.1.
-
Two diagnostic mutations failed at the expected assertions. Refreshing the oldest pending-write timestamp postponed the probe, and requiring a live Future suppressed it after Future removal.
-
Isolation preflight, frozen patch and policy checks, and coverage of all four discussion entries passed. Commands, source hashes, exits, and terminal logs were reconciled in validation-audit.stdout and receipt 1795493613724256156-2.
Limitations:
- The historical CI log does not establish the writer's exact state at expiration. The supplied evidence did not include the body or log for the related failure linked as #32849.
What type of PR is this?
Which issue(s) this PR fixes:
Refs #32744. Related failure: #32849.
What this PR does / why we need it:
The 4.2-dev blackholed-backend timeout tests can expire their short request deadline before the writer sends the request. In that ordering no data write is recorded, so the expected liveness probe cannot run. The observed CI failure is consistent with this ordering; its log does not record the writer's exact state.
For the two related liveness tests, wait until the peer has decoded the user request, then explicitly expire a test context whose transport deadline remains far in the future. Keep the checks for retained pending data, a fresh probe decision after Future removal, draining, inactivity, and rejection of new work. The test starts the real read loop only after the Future is removed and confirms admission is still open, so the first timeout must initiate draining in that state. Keep the continuous case's original approximate 5 ms request cadence. The change is limited to test code.
Validation
-racewith the writer deliberately held for 30 ms.-race -count=100. Temporary mutations that removed the pending latch or suppressed probes after Future removal each failed the target test as expected. Controlled mutations that suppress either probing or the initial drain transition when no Future remains each fail the revised test../pkg/common/morpcpassed with-race -short -tags matrixone_test -count=1on Go 1.26.6/Linux amd64.gofmt,git diff --check, repositoryerr-check,go vet, pinnedmolint, and pinnedgolangci-lintpassed for./pkg/common/morpc.