Repository navigation
fix: close HTTP trace and CI fixture ownership gaps - #30472
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? |
There was a problem hiding this comment.
Reviewed head 0af5740. No actionable source findings.
The previous HashBuild error-classification finding is fixed: the normalized failure is now both returned and published, so a later normal stop cannot erase it. The regression covers reverse-order retirement and cause preservation; the prior implementation fails those assertions.
Local final validation receipts are all green, including normal/race hashbuild and compile tests, 100 retirement iterations, SCA checks, and the selected two-CN suite. Full remote CI was still pending at review time; required CI must pass before merge.
|
Post-merge Linux/amd64/Go1.27.1 CPU/CGo functional verification at Full normal and race owning-package runs both fail on the same seven remaining Group roots (371 pass / 11 failed test events per mode), with automatic spill cap=1 below the unchanged host headroom threshold. Window passes 532 events in each mode; fileservice, process and HashBuild owning packages also pass normal/race (fileservice's external-credential skips remain explicit). Only an overlay adding an explicit 1GiB #30450 was reopened with existing developer XuPeng-SH; exact roots, commands, errors, scope and diagnostic limits: #30450 (comment) This is the existing fixture dependency remaining after a partial fix, not a new production regression or a reason to relax the production disk guard. Independent real MinIO external-object read/change-rejection also passes normal/race at this SHA; historical broad-CI flake claims are not substituted for these actual runs. Further SQL/recovery consumers are tracked separately in this audit. |
|
补齐本轮当前 main |
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: - #30414 ## What this PR does / why we need it: Support query-level nprobe for IVF rank options, with query override taking precedence over the session setting and existing fallback. Propagate the value through planning to IVFFLAT and IVFPQ, and document tuning, approximate search and GPU prerequisites. Invalid or unknown rank options now return errors instead of being ignored. The existing 4.2 AUTO behavior falls back to PRE on an empty result; a nonempty short page does not trigger fallback. Approximate search can therefore still return fewer rows or miss neighbors. Validation: native libraries and service built on macOS arm64 CPU; parser, planner and protobuf package tests, vet and incremental lint passed. The rank-options SQL case passed twice (63/63 each), and the vector directory passed with 1836 successful statements and two existing ignored statements. The tester did not compare JDBC metadata. CI remains pending. GPU search was not run, and the original high-dimensional data and queries were unavailable; these results do not establish recall for that dataset or arbitrary data. Performance: option parsing and parameter selection add bounded per-query work; increasing nprobe can increase search cost. Default probe behavior is preserved. Related main PR: #31753 CI repair: selectively backport the fileservice HTTP-trace lifetime fix from #30472 while preserving the 4.2 interfaces. Each actual HTTP request owns its trace, and concurrent callbacks synchronize timing state. This removes the pooled-trace reset race observed in the file TVF/Hive SQL test, including lazy List and multipart requests. Repair validation on Linux/amd64, Go 1.26.4: complete fileservice normal and race tests passed; four directly affected concurrency tests each passed 100 race repetitions; the exact `TestSQLFileAccessTenantStageCDC/file_TVF_and_Hive_planning_admission` regression and its parent cleanup passed under race. Scoped vet and golangci-lint passed. The in-memory RoundTrip benchmark measured 1.33 us / 368 B / 2 allocations unmarked and 3.44 us / 1,344 B / 22 allocations traced. Fresh GitHub CI remains pending. The subsequent UT failures were in initial statistics-test connection setup (HAKeeper ID-allocation timeout before any statistics SQL) and stale-index fixture cleanup. Both exact tests pass three race repetitions (`-count=3`, not separate processes) at head `1038d07054` and at clean 4.2-dev baseline `260678bace0`; their fixtures and native inputs match. This is bounded attribution evidence, not proof that HAKeeper availability is fixed. The stale-index fixture now reports a failed DROP on the owning test and checks catalog absence after successful cleanup, instead of silently leaving a database for the next subcase. It retains the existing timeout and semantic assertions. All four standalone DROP INDEX cells and both stale-generation sibling tests pass under race with the new cleanup checks; scoped vet/lint and independent Astra medium review pass. No statistics timeout or reconnect workaround was added. New-head hosted CI remains pending. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: XuPeng-SH <[email protected]>
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #30463
Fixes #30450
Fixes #30452
Related to #30453: corrects shared-fixture failure propagation and preserves the existing startup retry policy when a discovery deadline carries its diagnostic cause. The underlying discovery/I/O delay remains unclosed.
Related to #30454 and #30322: fixes inconsistent correlation-test cleanup budgets and cumulative branch-cleanup budgets. Production DROP/catalog latency is not claimed fixed.
Related to #30209: fixes a deterministic normal-stop publication/cancellation propagation skew with a failing old-code control; the exact historical CI interleaving was not reproduced.
Related to #30461: retain and validate the existing main deadline correction without duplicating it. #30204 already uses malformed
..invalidaddresses in cmd/embed; no DNS fixture patch is added. #30309's original shell cancellation failure remains unproved; this PR does not claim to close it.What this PR does / why we need it:
Ownership and failure boundaries
moerr.AttachCauseappends the known refresh diagnostic. Every branch is still classified, so unrelated errors, rollback failures, unknown commits, cancellation and an inactive bootstrap owner cannot become successful admission. Global error representation, discovery, backoff and startup deadlines are unchanged.Validation
Linux/amd64, Go 1.27.1, matching CGo libraries,
matrixone_test, bounded package/build parallelism:d9cf2dd4e2; the final HashBuild correction reruns its owning package and compile consumer, reusing valid checks for the other eight unchanged packages.TestSQLFileAccessTenantStageCDC/file_TVF_and_Hive_planning_admissionexecutes under the complete embed race run.WithTimeoutCause/AttachCauseclassifier andservice.Startnegative controls fail before the fix. Corrected tests cover wrapped/repeated diagnostics, same-text non-diagnostics, mixed errors, owner cancellation and successful admission. The complete cnservice race package passes (9.743s).Cost, compatibility and limits
A before/after object-wrapper microbenchmark using the same fake HTTP transport (three samples per path) measures median 1489 ns / 848 B / 8 allocations before versus 1859 ns / 1680 B / 22 allocations after for reused connections: about 370 ns, 832 B and 14 allocations extra per request. The cold-connection hook path measures 1860 ns / 848 B / 8 allocations before versus 2543 ns / 2128 B / 25 allocations after. These are synthetic wrapper/hook costs, not measured network or object-storage throughput. The HashBuild follow-up retains an already-computed failure result and adds no classification call or success-path work. The fix adds no response-body copy, wait for callback completion, persistent format, catalog, wire or configuration change.
No production timeout, new retry mechanism, skip or broad serialization is added. The correlation cleanup budget change is explicitly test-local and uses the existing two-minute SQL allowance; successful operations do not wait for that allowance. Four bounded catalog queries verify removal. This PR repairs the demonstrated startup classification defect, not the underlying discovery/I/O slowdown, production DROP latency or unproved shell cancellation incident. Local results do not imply the new remote CI has passed.