Repository navigation
test: cover IVF remote stream lifecycle regressions - #28672
Conversation
|
Addressed the P2 connection-cancellation oracle gap in follow-up commit The Validation after the edit:
The BVT plan-path enhancement remains a non-blocking follow-up; this change addresses the blocking P2 only. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
[P2] Reduce or justify the 65,536-vector regression fixture — pkg/tests/issues/issue_28378_test.go:295–299
This fixture builds 65,536 128-dimensional vectors and recreates them for four IVF index cases. On this exact head, the exclusive -p 1 -race UT stage reports TestIssue28378IVFFlatRemoteLifecycle taking 573.55 seconds out of 1180.70 seconds for the owning issues package; this is test execution time, not fixture admission wait. The current MultiCN IVF path has no 65,536-row threshold (stats.go:3281–3288, compile.go:5249–5260), and an existing 16-row BVT already exercises a MultiCN plan.
The testing contract requires a measured before/after delta and a written reason why reuse, injection, or a smaller dataset cannot prove the same contract when a test materially increases owning-package time. I could not find either in the PR body, comments, diff, or validation evidence. Please reduce the fixture while preserving its oracles, or provide the same-mode cost comparison and explain which necessary boundary a smaller fixture cannot exercise. Green CI shows this run passed; it does not close this cost/controllability gate.
The rest of the current diff has no other verified blocker. Current exact-head SCA, UT/race, coverage, shared build, and PROXY/PESSIMISTIC multi-CN BVT checks pass.
|
Addressed the P2 fixture-size concern in follow-up commit
The PR body records the size rationale and validation. Please re-review the updated head. |
|
XuPeng-SH, addressed in f7cb131: the IVF fixture is now 4,096 rows instead of 65,536, still 256 vectors per IVF list on average, and the test comment records why the 65,536 boundary is not required by the Multi-CN vector-index path. Exact-head focused validation passed in ordinary mode at 15.470s and race mode at 36.096s. Your 573.55s measurement was on the prior 65,536-row parent head under the exclusive -p 1 -race UT stage; I have recorded the different-mode caveat in the PR body rather than presenting it as a CI performance claim. The body now points to product base 288a0a2 and fresh exact-head run 34756863153, which is still in progress. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
GPT-6 medium deep review of exact head f7cb131935d0a72cbaa418be99e5149b1b131282: no blocker found; approved.
Reviewed all six changed files across queued-stream cancellation sequence preservation, dispatch retirement of consecutive stopped receivers, remote credit-wait cancellation and lifecycle cleanup, and the IVF dual-CN regression coverage. Worker joins and fixture/database teardown are bounded; I found no concrete leak, cancellation deadlock, duplicate retirement, or major racing-UT slowdown mechanism.
Exact-head CI evidence: race-test job passed; the IVF test took 45.55s in the exclusive race-test stage (queries 43.23s, injected preparation failure cleanup 2.32s). The compose artifact confirms vector_ivf_multicn_search.sql ran 36/36 successfully in 0.938s. I reused these exact-head CI results rather than rerunning the heavier fixture locally.
Merge Queue Status
This pull request spent 7 minutes 13 seconds in the queue, with no time running CI. Waiting for any of
All conditions
ReasonPull request #28672 has been dequeued Queue conditions are not satisfied:
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. Requeued — the merge queue status continues in this comment ↓. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Review update at current head e9054d0434b5bd33cf4ed987c3e5e89759c6c53a: REQUEST_CHANGES on test cost.
The added top-level TestIssue28378IVFFlatRemoteLifecycle at pkg/tests/issues/issue_28378_test.go:144 takes 45.55 seconds in the race-test job by itself; its queries subtest takes 43.23 seconds. This exceeds the accepted cost for one racing UT. My prior approval at an earlier head did not account for this per-test cost and should not be treated as approval of this revision.
Keep the lifecycle regression coverage, but materially reduce the single-test cost: shrink the fixture/index/query work or move the longer stress portion to a slower suite. Please measure and report the exact focused -race test duration after the change. The 45.55-second evidence is from the exact prior head's CI; the IVF test source is unchanged in the current head. The current head's CI is still in progress.
|
Revalidated the current pushed head
The branch and PR remain Ready/MERGEABLE; fresh exact-head CI is still running, followed by the normal distributed BVT/QA gates. |
|
Current head The Linux Ubuntu UT report for this head shows |
|
@XuPeng-SH the requested fixture/cost change is on |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Re-reviewed exact head 323daee056991164e5f807ac070295baf633b460. The earlier race-UT timing concern is resolved: the exact-head race CI reports 12.58s for the IVF lifecycle suite (queries 10.15s, preparation_failure 2.43s), down from 45.55s. The test still covers dual-CN result correctness, cancellation, receiver retirement, waiter cleanup, rollback, and independent cleanup. BVT artifact reports 36/36 successful. I found no remaining correctness, lifecycle, or material test-cost blocker.
Merge Queue Status
This pull request spent 9 minutes 35 seconds in the queue, with no time running CI. ReasonThe pull request can't be updated
HintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. Tick the box to put this pull request back in the merge queue (same as
|
aptend
left a comment
There was a problem hiding this comment.
Deep-reviewed exact head 323daee056991164e5f807ac070295baf633b460 against base 07b25969bfea9d4b76d3bf05d5b0497e4f36eba0, including all prior reviews/comments, the final fixture/concurrency reduction, and the complete six-file diff. No blocker found. The tests exercise post-admission MORPC cancellation without sequence gaps, first/middle/last/consecutive shuffle receiver retirement, query/connection cancellation while blocked on remote batch credit with terminal ownership cleanup, and bounded dual-CN IVF result/lifecycle coverage. Worker, transaction, connection, database, and timeout cleanup paths are bounded and joined. Local exact-head validation passed: each focused mechanism test for MORPC, dispatch, and remote notify ran 10 times; the phase-budget and two-CN IVF lifecycle suite passed in 13.929s; gofmt and diff checks were clean. Exact-head required CI is green.
What type of PR is this?
Which issue(s) this PR fixes:
issue #28378
What this PR does / why we need it:
Add regression coverage for queued stream cancellation, shuffle receiver retirement, and distributed IVF query cleanup. Production fixes are already present through #28358, the relevant dispatch/remote pipeline changes in #28364, and #28539; this PR changes tests only and does not establish their individual causal contribution to the original TKE incident.
Validation (final file contents include the follow-up assertion, SCA, coverage-budget, fixture-size, and concurrency-budget fixes; exact head 323daee; upstream base 07b2596; product base 2a6fe7f):
WaitDelay expired before I/O complete; the failed Coverage chain passed on rerun without code changes.Deployment evidence for the already-fixed product base, independently of this new test commit:
QA required: yes — distributed timing and deployed-workload acceptance. Automated terminal coverage includes completed SQL assertions, cancellation waiter exit, preserved terminal errors, registration removal, and cleanup. QA should review the target release's inclusion of the existing production fixes and the attached run evidence. First-error query/stream/peer correlation and unique root-cause attribution remain unavailable; this PR must not auto-close #28378.