Repository navigation
Description
Description
In the 4.2-dev TKE Weekly Family run below, an AP CN was OOMKilled while executing the Wiki 10M IVFFlat l2_filter_threshold / mode=pre recall workload. Client connections were lost in the same second, the six-mode IVF evidence became incomplete, and the shared resource-health gate failed.
This report tracks the availability failure and the exact workload/resource timeline. It does not assert a memory leak, a particular allocating component, an introducing PR, or the same root cause as any related issue.
Environment
- MatrixOne branch / commit:
4.2-dev/167a1a91999f43146393995286b8237a0f6e0942 - Workflow run: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/46674761869
- IVF six-mode job: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/46674761869/job/142906621606
- Resource-health job: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/46674761869/job/143109938916
- Namespace:
mo-42-family-46674761869-1 - Topology: Weekly Family, 1 TP CN + 2 AP CN, with shared TN/Log/Proxy pods
- Affected pod:
nightly-regression-dis-ap-cn-2hwlc - AP CN container limits: 14 CPU, 55 GiB memory;
GOMEMLIMIT=25000MiB - Dataset: Wiki 10M, 768-dimensional vectors, IVFFlat
- Benchmark source revision recorded by the quality receipt:
0bae04528673d7756c4ee2478ac8e4e41f54df1b
Workload
The failing case is l2_filter_threshold-pre in the Wiki 10M 768d six-mode recall job:
- 10,000 queries per round, two rounds expected
- 100 concurrent workers
k=10probe_limit=5ivf_preload_entries=0file_idmembership filter plusl2_distance(...) <= 2.5BY RANK WITH OPTION 'mode=pre'
Timeline and actual behavior
- The IVF job started at
2026-12-01T18:59:50Zand reached thel2_filter_threshold-precase after the other modes had completed. - At
2026-12-01T19:11:39.324Z, the first recorded client failure was MySQL error 2013:Lost connection to MySQL server during query. Additional clients immediately reportedInterfaceError. - Kubernetes pod status records the AP CN main container terminating at
2026-12-01T19:11:39Zwith exit code 137 and reasonOOMKilled. The replacement container started at19:11:40Z. - The quality receipt recorded
expected=10000,completed=10000,failed=10000, andconnection_errors=100. QPS and recall were reported as zero, and the second round was missing. - The independent Wiki result audit rejected the case as
INCOMPLETE / invalid_quality_receipt; the six-mode inventory therefore failed. This is an availability/evidence failure, not a verified numerical recall regression. - At the final resource gate, all 9 pods were Running and Ready, but the affected AP CN had
restartCount=1andlastState.terminated.reason=OOMKilled, so the resource gate failed.
The other five modes in the same six-mode job passed, including l2_filter_threshold-post. This shows that the cluster was not permanently unavailable, but does not prove that only the threshold-PRE mode can trigger the incident.
Evidence
- Run-owned artifacts:
tke-family-weekly-shadow-1x2-weekly-ivf-46674761869-1tke-family-weekly-shadow-1x2-resource-46674761869-1
pods.jsonrecords for the affected main container:lastState.terminated.exitCode=137lastState.terminated.reason=OOMKilledlastState.terminated.finishedAt=2026-12-01T19:11:39Zstate.running.startedAt=2026-12-01T19:11:40Z
- The IVF quality receipt and
wiki_run_report.jsonpreserve the failing client timestamps, query counts, missing second round, and incomplete audit status.
Stability / historical context
- From 2026-11-22 through 2026-11-30, the comparable scheduled/manual runs that reached these steps passed both the IVF six-mode job and shared resource-health gate. The 2026-11-28 scheduled run skipped them after an earlier build-stage failure.
- A 2026-10-29 run (
40897692071) also failed the resource-health gate and the same two IVF audit/inventory steps. Its detailed evidence is no longer available, so it cannot yet be established as the same OOM or root cause. - The current incident therefore appears intermittent rather than demonstrated on every run.
Expected behavior / acceptance
Under the supported Family workload and configured resource limits, the AP CN should remain available, or reject work and recover memory without an uncontrolled OOM restart.
A fix verification should include:
- The same topology and
l2_filter_threshold-preworkload completing both 10,000-query rounds with zero connection failures. - Complete six-mode audit evidence and no AP CN OOM/restart during or after the Family workload.
- Container working-set, native malloc, and Go heap timelines around the workload, showing that memory is bounded and recovers after the workload.
- Repeated focused runs, because the incident is intermittent; a single green nightly is not sufficient proof.
Related issues
These are related by workload or symptom, but this report does not claim duplicate root causes:
- [Bug] IVF pre-filter 向量查询 EXPLAIN ANALYZE 导致 CN OOMKilled (10M 向量, 100 并发) #26720: 4.2-dev IVF pre-filter OOM under 10M / 100 concurrency, originally involving TP CN,
l2_only_pre, andEXPLAIN ANALYZE. - [Bug]: AP CN native memory grows after Family AP workloads and reaches OOM limit #33118: main Family AP CN native-memory growth after foreground AP work, in a subsequent no-PK/background window; addressed there by fix(disttae): tie insert logtail buffers to snapshot lifetime #33128 under its documented scope.
- [Bug]: 10M IVFFlat workload intermittently closes RPC/backend connections #27757: intermittent 10M IVFFlat backend/RPC closure; its original report did not establish OOM.
- [Bug]: IVFFlat l2_filter_threshold mode=pre drops to ~0.37 QPS and times out on Wiki 10M #27854: the same threshold-PRE SQL mode with severe low-QPS/timeouts, explicitly without OOMKilled; addressed there by fix(ivfflat): integrate exact PRE storage Top-K and gate local DOP #28515.
- [Bug]: FileService: concurrent disk-cache hits duplicate reads/decodes and can evict warm entries before key deduplication #28898: Wiki FileService repeated-read/decode amplification; that report explicitly does not establish an OOM caused by its mechanism.
Next investigation
- Capture the affected AP CN's previous-container logs and container working-set timeline before
19:11:39Z. - Compare native
malloc:inuse_spaceand Gomemory:inuse_spacebefore and during the threshold-PRE round, including after the workload stops. - Identify concurrent foreground/background work, merges, cache activity, and the exact query execution/profile at the OOM window.
- Re-run the same SHA and mode in isolation and within the Family flow, with a no-threshold/control mode, before attributing the OOM to a specific component or PR.
Activity
LeftHandCold commentedon Dec 2, 2026
The direct parent and merge of #33514 isolate the change to the Wiki pre-ranking primary-key producer. Both builds ran the nightly SQL shape on the same 32,768-row fixture with a BIGINT primary key, a secondary index on file_id, VECF32(768), eight IVF lists and probe_limit=5. The comparison uses file_id=20000000, an upper L2 bound of 2.5 on the same vector as ORDER BY, and LIMIT 10 BY RANK WITH OPTION 'mode=pre'.
In the failing AP CN, 100 transactions entered the Wiki base-table read path during 03:11:29–31 CST on Dec 2, with 200,000 PKs apiece. At least 71 slow reads included roughly 25 MB ranges across 22 objects between 03:11:33 and 03:11:36. The container reached its 55 GiB limit and was OOMKilled at 03:11:39, coincident with the first disconnect. The last native-memory sample predates the read peak. Together these observations identify #33514 as the source of the read amplification and a high-confidence contributor to this kill. They leave the final allocation breakdown and a memory leak unproven.
A whole-PR revert would restore a known short/wrong Top-K for filtered PRE queries. The fix under test keeps exact membership, moves the eligible upper bound to the synchronous lossless index entries, and preserves the legacy small-domain crossover. Full acceptance remains open on the two 10,000-query rounds, 100 clients, 55 GiB AP CNs and the resource-health gate.
Planner change in #33514 · Failing Wiki job · AP resource-health evidence
[4.2-dev] Filter exact IVF PRE keys before reading wide vectors (#33648)