Repository navigation
fix: acknowledge ISCP drain before executor runtime starts - #31167
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? |
|
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: 56b279861f980514598f13f741e543b1162b8606
Assessment: approve
Reviewed the complete delta and lifecycle ownership chain. Acknowledging genuine registry absence is sound: workers stop before unregistration, and later executors inherit the fence before admitting consumers. Active-runtime draining, runner handoff, renewal and rollback cleanup remain intact. The change avoids unnecessary readiness waits without adding state or I/O. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Reused exact-head CI successes for shared build, UT, UT coverage, arm64 static analysis and two multi-CN BVT jobs.
-
Reviewed deterministic handler coverage for late publication, fence inheritance, rollback and runtime disappearance, alongside existing active-consumer and cancellation tests.
-
Reviewed the new two-CN SQL test covering four DROP forms across FULLTEXT2, IVFFLAT and HNSW.
-
git diff --check passed. Reconciled checks/1792987943479475410-3.json with diff-check.log and the clean assigned source. Evidence and review-audit.json are retained under /home/xupeng/.local/state/mo-bot/jobs/7287edcc8117aab46f6a34b5/attempt-1.
Limitations:
-
Native tests were not repeated locally. Frozen CI includes terminal conclusions without raw logs; author-reported focused race and repetition counts were not independently verified.
-
The SQL test does not force delayed runtime publication; deterministic handler tests cover that boundary.
-
Issue #29699's behavior was assessed from the PR description; no separate frozen issue body was supplied.
Merge Queue Status
This pull request spent 1 hour 20 minutes 22 seconds in the queue, with no time running CI. ReasonPull request #31167 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.
HintYou 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. Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #29699
What this PR does / why we need it:
An async index job can record its CN task runner before that CN publishes an ISCP executor runtime. An immediate DROP fences the job, then previously waited for a runtime that might not start within the 10-second drain budget. This surfaced as an internal readiness error for DROP INDEX, ALTER DROP INDEX, DROP TABLE, and DROP DATABASE.
After installing the CN-scoped fence, the drain handler now acknowledges an authoritative runtime-registry miss. An old executor unregisters only after its workers stop, and a later executor copies the fence before admitting consumers. A synthetic miss from fault injection while a runtime is active still follows the existing wait and drain path. A runtime that stops during the wait is handled the same way. The compile-side lease, runner handoff, and rollback cleanup are unchanged.
Tests cover late runtime registration, fence inheritance and rollback, an active runtime behind a synthetic miss, and runtime disappearance during wait. A public two-CN SQL test creates FULLTEXT2, IVFFLAT, and HNSW indexes, then immediately exercises all four DROP forms. It checks source rows for the index-only drops.
Validation on this branch:
make cgo-race): passed01a1762a-eadd-7800-9d78-831f8388132c)The registry check is local and only runs after the fault-aware lookup misses; it avoids the readiness wait in the genuine absence case. Remote CI has not been monitored.