Repository navigation
Description
Description
On main, the distributed IVFFlat SIFT128 benchmark accepts the 1M-row dataset and completes index creation, but the subsequent indexed ANN queries return ERROR 20503 (HY000): rpc stream closed under 100-terminal load. All three IVFFlat variants in the same job fail; the HNSW control on the same SIFT128 data succeeds.
This blocks collection of valid IVFFlat recall/QPS evidence. It is a server-side query/connection interruption rather than an index-build, dataset-download, or benchmark assertion failure.
Severity rationale
The failure affects the primary IVFFlat query path on main for L2, cosine, and normalized-L2 workloads. It happens immediately after a successfully built index and turns thousands of ordinary SELECT ... ORDER BY <vector-distance> ... LIMIT 10 requests into connection errors. Marked severity/s-1 for prompt triage; the current evidence is one failed nightly run, not a 3/3 stability claim.
Environment
- Branch:
main - MatrixOne commit:
39225f5fbc63b44a190cdd43f954ee07d78e6cdc - Deployment: TKE distributed MatrixOne, 3 CN + 1 TN
- CN/DN limits: 55 GiB;
GOMEMLIMITCN 25000 MiB and DN 35000 MiB - Dataset: SIFT128, 1,000,000 vectors,
VECF32(128); query and ground-truth files are the matching SIFT set - Workload: 100 terminals, 5-minute measured window,
k=10,probe_limit=5 - IVFFlat index:
lists=500,experimental_ivf_index=1
Steps to reproduce
-
Create
ann.items_sift (id INT PRIMARY KEY, embedding VECF32(128)). -
Load the 1M SIFT128 base vectors and set
probe_limit = 5. -
Create the L2 IVFFlat index:
CREATE INDEX ivf_500 USING ivfflat ON ann.items_sift (embedding) OP_TYPE 'vector_l2_ops' LISTS=500;
-
Run concurrent indexed queries for five minutes with 100 terminals, for example:
SELECT id FROM ann.items_sift ORDER BY l2_distance(embedding, '<SIFT128 query vector>') LIMIT 10;
-
Repeat with cosine and normalized-L2 IVFFlat variants using the same SIFT128 data and concurrency.
The nightly reproducer performs these operations through mo-load case cases/ann/ivf/sift/.
Actual behavior
The base-data load and every IVFFlat index creation completed successfully. The first L2 query failure appeared about two seconds after index creation:
03:05:14 CREATE INDEX ivf_500 ... completed successfully
03:05:16 ErrorCode : 20503
03:05:16 ErrorMessage : rpc stream closed
The final result records are:
| Case | Duration | Successful queries | Errors | Recall@10 | QPS | Result |
|---|---|---|---|---|---|---|
| IVFFlat L2 | 302 s | 795,462 | 2,205 | 76.99% | 2,615 | FAILED |
| IVFFlat cosine | 301 s | 720,804 | 1,546 | 78.25% | 2,468 | FAILED |
| IVFFlat normalized-L2 | 301 s | 653,775 | 625 | 80.22% | 2,321 | FAILED |
The failing SQL is an ordinary indexed vector SELECT ... ORDER BY <distance>(embedding, vector) LIMIT 10; the client receives 20503 rpc stream closed, not a recall-threshold error. CN diagnostics in the same time window record remote-execution query interrupted / context canceled signals. The collected pod status showed all CN pods with zero restarts; no panic or OOM signal was retained for this failure.
Expected behavior
After a successful IVFFlat index build, all supported L2, cosine, and normalized-L2 indexed queries should complete without connection closure. The five-minute workload must report zero query errors and produce usable recall/QPS evidence.
Stability and controls
- Reproducer: one nightly run; all three IVFFlat variants in that run failed with the same
rpc stream closedclient symptom. A separate 3/3 repeat is still required to establish failure frequency. - Passing control: in the same deployment, with the same 1M SIFT128
VECF32(128)data, 100 terminals, and five-minute window, HNSW L2 completed successfully: 5,059,018 successful queries, 0 errors, 92.28% recall, and 16,998 QPS. - Exclusions: data load, table creation, and IVFFlat index creation succeeded. Therefore this is not explained by COS dataset availability or a failed index build. The benchmark records nonzero query errors as
FAILED; it does not convert them into a performance result.
Evidence
- Failing job: HNSW AND IVF VECTOR INDEX Benchmark Test
- Workflow run: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/34136649854
- Job interval: 2026-09-08 02:53:37–03:25:46 UTC
- The job log contains 4,376
ErrorCode : 20503/ErrorMessage : rpc stream closedrecords across the three IVFFlat cases, while the HNSW control records zero errors.
Code analysis
Root cause is not yet confirmed. The server-side evidence points to a distributed remote-execution cancellation/stream-lifecycle path, because the client-side rpc stream closed coincides with CN query interrupted and context canceled messages. It is not sufficient to attribute the failure to a specific CN/TN/RPC component without a controlled rerun retaining CN/TN/Proxy diagnostics.
Regression coverage
The existing mo-load SIFT128 IVFFlat benchmark is the appropriate regression workload. After a product fix, run each L2/cosine/normalized-L2 case independently at least three times with the same 1M data, 100-terminal concurrency, and five-minute window. Require zero client 20503/rpc stream closed errors, zero server-side query interrupted caused by the request path, and a passing HNSW control.
Related
- #27757 tracks an earlier, larger 10M
VECF32(768)IVFFlat connection-interruption problem. This report is not asserted to share its root cause: it is a freshmainfailure on 1M SIFT128 across three distance variants. - #27892, which addressed CPU-quota handling for [Bug]: 10M IVFFlat workload intermittently closes RPC/backend connections #27757, is already included before the tested main commit.
- #28128 addressed remote receiver-stop handling for [Bug]: 10M IVFFlat workload intermittently closes RPC/backend connections #27757 but merged into
4.2-dev, not the testedmainlineage.
Activity
XuPeng-SH commentedon Sep 8, 2026
@VioletQwQ-0 please take a look at it ASAP
VioletQwQ-0 commentedon Sep 11, 2026
转 QA:已合入修复的部署验收与回归覆盖
@Ariznawlll 请接收 #28378 的开发侧验证结果。issue 保持 OPEN;本次交接不是正式 QA PASS,也不宣称唯一根因已确认。
生产核验版本:
2a6fe7f61358e846a20aafba3b50903a61608682,包含 #28358 的完整 MORPC 序号/写失败修复(040356c3)、#28364 中 dispatch/remote pipeline/ReceiverStopped 相关修复(67677d98,该提交还含无关改动),以及 #28539 的 shuffle 退休与 terminal 所有权修复(fb214b2d3c5624eeeb161d69123eea15d3110854)。没有新增生产补丁。回归覆盖单独提交为 #28672,commit
231239efba5eca40bde92ed3932d44aa4ffc3bba,目前为 Draft,PR CI/审阅另行验收,不能将下面的产品部署结果当成新测试提交的 CI PASS。已有证据
39225f5fbc63b44a190cdd43f954ee07d78e6cdc,三个 IVF 在实际测量窗口出现20503 / rpc stream closed。issue-28378-tke-baseline-34464342049-1(ID 10148674610)。百万条 128 维基础数据、10,000 查询、100 终端,每例完整测量约五分钟;五份数据 SHA-256 与旧样本一致,九个服务 Pod 的资源请求/限制及 nodeSelector 一致。workflow9538c3b07ce340a2abef90ef35ac0aca08418062,mo-load97464107cfb7367ffd969d88addcdc0eb6a14b5a。sha256:f5ba6ac3505607ffaa3c961a2bcf60a2157d3833c24264d99f7fc17d3a90f341。四份 summary/result 和空错误文件交叉核验通过;该模式的 workflow 绿色本身不能替代结果检查。与旧样本 TPS 差异约 -0.93%/-2.42%/-0.61%/-0.81%,未见明显降载换取零错误,但不是统计性能结论。QA 验收要求及边界
.run未上传、摘要清单自身摘要不自洽;46 个可见业务文件摘要通过,结果/数据文件没有发现不符。VioletQwQ-0 commentedon Sep 11, 2026
调整转测时机:等待回归覆盖 PR #28672 合入后,再正式转 QA。上一条评论中的验证数据和结论边界继续有效,但本次 QA 交接暂缓,目前不需要 QA 开始验收。
本 issue 保持 OPEN,移除
phase/testing,责任人恢复为 VioletQwQ-0。后续转测应重新核对 PR 合入状态及对应 CI 结果,再提交正式交接。test: cover IVF remote stream lifecycle regressions (#28672)
VioletQwQ-0 commentedon Sep 14, 2026
@Ariznawlll 恢复正式 QA 交接:回归覆盖 PR #28672 已于 2026-09-14 04:53:57 UTC 合入,已核实 squash 提交
c148f0e2a77afb6d8feac721028492b77e0eba97,最终 PR head 为5ce02a0b503c52799d4733931c849a7ba642449d。issue 保持 OPEN,并恢复phase/testing。CI 证据边界:此前 head
323daee056991164e5f807ac070295baf633b460的 CI Required 已通过(run 34799486791);最终 head 的 run 34807660456 尚在运行,不能将此前结果视为最终 head CI PASS。合并由仓库侧完成,本监控没有绕过保护或触发 CI/TKE。请沿用本 issue 2026-09-11 的部署证据和验收要求:核对目标版本包含 #28358、#28364 相关修复和 #28539,复核 run 34464342049 原规模 SIFT128 四例零客户端错误、结果有效性及清理情况,并记录明确版本、环境和 QA PASS/FAIL。最终 head CI 仍是待核验项;原现场唯一根因未闭环,正式 QA 接受前不关闭 issue。
Ariznawlll commentedon Sep 14, 2026
测试版本
39225f5fbc63b44a190cdd43f954ee07d78e6cdc(main)。2a6fe7f61358e846a20aafba3b50903a61608682(main)。该版本包含 fix(morpc): avoid client stream sequence gaps #28358 的 MORPC 写失败/序号修复040356c3、fix(sql): support bounded deep existential predicates #28364 的 dispatch/remote pipeline/ReceiverStopped 相关修复67677d98,以及 fix(dispatch): preserve terminal errors on receiver retirement #28539 的 shuffle 退休与 terminal 所有权修复fb214b2d3c5624eeeb161d69123eea15d3110854。a68a200c0bfb0c18f1b7f49d26b20b8d0d9b017f(main)。已核对该 commit 包含上述三项修复。main:6987fda6c4a13295b8d525706342fc6033094d2e,是a68a200c0bfb0c18f1b7f49d26b20b8d0d9b017f的后继版本(向前 18 个 commit)。VECF32(128);100 terminals、5 分钟;k=10、lists=500、probe_limit=5。原问题验证
原始回归在上述规模下,IVFFlat L2、cosine 与 normalize 三个查询场景出现
ERROR 20503/rpc stream closed,共 4,376 次客户端错误;同轮 HNSW 对照没有该错误。原始证据:run 34136649854 / job 101921662405。因此,本次核对关注的是:在不降低数据规模、并发、运行时长或 IVFFlat 参数的前提下,三类 IVFFlat 查询是否仍会中断 RPC stream。
业务场景验证
在修复部署版本
2a6fe7f61358e846a20aafba3b50903a61608682的原规模验证中,四个场景均完成且客户端错误为 0:修复前后性能量级保持接近,IVFFlat 三项 TPS 差异约为 -2.42%、-0.61%、-0.81%;因此错误归零不是通过降低压力或缩短测试换来的。部署验证证据:run 34464342049。
后续 main nightly 再次以相同数据集和四个场景验证
a68a200c0bfb0c18f1b7f49d26b20b8d0d9b017f:该 Job 完整日志中
ErrorCode : 20503、rpc stream closed、query interrupted、context canceled的出现次数均为 0;四个场景结果均为SUCCEED。run 34764591964 / job 103838331932。稳定性与边界核对
回归测试
回归覆盖已由 #28672 合入
main,squash commit 为c148f0e2a77afb6d8feac721028492b77e0eba97,最终 PR head 为5ce02a0b503c52799d4733931c849a7ba642449d。该覆盖用于持续检出 IVFFlat 并发查询中的 RPC stream 中断;产品修复验证与回归覆盖 CI 证据在上文分别列出,未混为同一结论。测试证据
测试结论
测试通过。
test: cover IVF remote stream lifecycle regressions (matrixorigin#28672)
test: cover IVF remote stream lifecycle regressions (matrixorigin#28672)
test: cover IVF remote stream lifecycle regressions (matrixorigin#28672)