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? |
|
Queue requested — the merge queue status continues in this comment ↓. |
8286e8d to
54b5814
Compare
|
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: 54b5814dcbce3f7b7de5bcdb1c18eece5f4b77d3
Assessment: approve
No actionable defects found. The change extends the existing child task with cancellation and drain tracking, preserving batch ownership and holding the parent’s object scopes until running local writers return.
Model: gpt-6.1-terra / max
Session: 01a22aff-bb68-7e31-ae71-ee4ab48ad9d0 · slot 0 · generation 45
Validation:
-
Private-runtime preflight passed. Native prerequisites were built for the frozen head and verified with the repository’s provenance checker.
-
The jobs package passed under the race detector. Each new cancellation test also passed 100 separate race repetitions.
-
The existing table-tail error and successful-flush engine tests passed in normal mode; the error test also passed under the race detector in short mode. The parent uses an OpWorker in these tests, while dispatcher scope-release ordering was verified by source tracing.
-
Successful checks have matching frozen-head receipts and retained logs in the diagnostic directory.
Limitations:
- The author’s MinIO latency measurements were not independently reproduced, and no real S3 service was exercised locally. A backend that does not return after cancellation can still delay parent cleanup.
🚫 Left the queue · pull request merged manually57 min in the queue, with no time running CI. So far
Reason Pull request #33494 has been merged manually at 7e8130e Tick the box to put this pull request back in the merge queue (same as
Times in UTC · dashboard · how the merge queue works |
## What type of PR is this? - [x] Documentation - [x] Test and CI ## Which issue(s) this PR fixes: Related to #30150 for the required check on cancelled producers. The rollout uses the control runner support from #28717 and addresses the queue observed on #33494 and #33501. ## What this PR does / why we need it: On #33501 the old required check waited 7m35s for a hosted runner and ran for four seconds. The replacement workflow was unable to start preflight during that wait. On #33494 the old required check and the cancellation controller also queued together. [Required check from #33501](https://github.com/matrixorigin/matrixone/actions/runs/46374859836/job/141702801415) · [Required check from #33494](https://github.com/matrixorigin/matrixone/actions/runs/46368023504/job/141705095759) The repository setting for preflight, the required check and the cancellation controller now selects the shared CS medium pool. This update records the operational setting and how to restore hosted execution and release a superseded run if a runner label stops serving work. Two simultaneous jobs using the shared label started on MTY and RUH in 7 and 11 seconds. A hosted reference submitted with them waited 61 seconds. JED and MNL2 also ran the same checkout, PR metadata read and required-check verification. [Shared-label comparison](https://github.com/matrixorigin/matrixone/actions/runs/46378188128) · [JED and MNL2](https://github.com/matrixorigin/matrixone/actions/runs/46380046197) In a branch-isolated handoff, cancellation made the old required check fail and the successor reached a runner 50 seconds after its workflow was created. A second exercise held the old required check on a nonexistent label, restored the hosted default for the successor, and used GitHub's force-cancel operation on the obsolete probe. The 65 existing scope and cancellation tests passed locally. [Cancelled producer](https://github.com/matrixorigin/matrixone/actions/runs/46379765379) · [Successful successor](https://github.com/matrixorigin/matrixone/actions/runs/46379836410) · [Hosted recovery](https://github.com/matrixorigin/matrixone/actions/runs/46380130392) After the repository setting changed on November 30 at 08:20 UTC, the production preflight picked up this main PR on RUH in 15 seconds and a 4.2-dev PR on MTY in 5 seconds. The cancellation controller for this PR picked up on RUH in 10 seconds. [Main preflight](https://github.com/matrixorigin/matrixone/actions/runs/46380837572/job/141720723388) · [4.2-dev preflight](https://github.com/matrixorigin/matrixone/actions/runs/46381492276/job/141721422578) · [Cancellation controller](https://github.com/matrixorigin/matrixone/actions/runs/46380847802/job/141719313212) On main PR #33502 the deployed controller picked up on RUH in 11 seconds, waited the existing grace period, and automatically force-cancelled the superseded run while its hosted required check was queued. The successor preflight picked up on MTY in 5 seconds. From the new workflow being created to preflight starting took 2m48s. This documentation PR's required check also passed on MTY after a 6-second queue. [Automatic cancellation](https://github.com/matrixorigin/matrixone/actions/runs/46382877728/job/141725947578) · [Successor preflight](https://github.com/matrixorigin/matrixone/actions/runs/46382871951/job/141727210246) · [Passing required check](https://github.com/matrixorigin/matrixone/actions/runs/46380837572/job/141731647152)
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #33490. The corresponding 4.2-dev change is #33493.
What this PR does / why we need it:
When a table-tail flush times out waiting for an appendable-object snapshot, a child that already owns its batch can continue writing on the I/O worker. That write occupies the worker even though its parent can no longer commit the flush.
Register the child's cancel function while transferring ownership of the batch. On failure, retire pending batches and cancel running writes across both the data and tombstone groups, including partially scheduled groups. Wait for the local writers to release their resources before returning the parent's object scopes to the scheduler. Log the failing phase before draining so it is visible even if storage is slow to respond. The six-minute snapshot wait budget is unchanged.
Validation on main
Compared the baseline at
d4a41b466cand this patch on the same Linux host. Two three-row flushes shared one I/O worker. The loopback HTTP endpoint delayed the first PUT response by 400 ms, and the parent had a 40 ms wait budget after the write reached storage.The HTTP endpoint observed cancellation in all 20 patched runs, and the next object write succeeded each time. A backend that ignores cancellation can still delay parent cleanup. These tests measure local worker recovery; production checkpoint latency and OOM frequency were outside the experiment.
The jobs package passed build, vet, normal tests and the race detector. Both new regression tests passed 100 race repetitions each. The engine regressions passed for table-tail flush, error handling, tombstone rollback, stopping checkpoints on flush failure, and preserving snapshot row IDs across an aborted append.
Branch update validation
Rebased onto official
mainat98b20975b7after GitHub rejected Mergify's automated branch update for a workflow permission. The patch at54b5814dcbmatches the patch at8286e8d586ingit range-diff.git diff --checkand the Loom artifact check passed. On Darwin/arm64 at54b5814dcb,mo-cgo-test -race -shortpassed both snapshot cancellation tests and four engine tests covering normal table-tail flush, flush errors, and tombstone rollback. These checks cover the rebase across the upstream appendable-object merge changes. The benchmark numbers above are from8286e8d586.