Repository navigation
Description
Description
The SYS RESTORE SYS lane of the main PITR TKE regression shows a severe slowdown in three 100M-row LOAD DATA URL S3OPTION cases on official MatrixOne main. The no-index table is affected too. This is an observed S-1 performance anomaly; the product-versus-COS/cluster root cause is not yet established.
Environment
- MatrixOne: official
mainatb111224b0c624773389b390cd3cf1223126b6ee2 - Run: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/39058765341
- Job: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/39058765341/job/118039720567
- Deployment: TKE distributed, 3 TP CN / 1 DN, via Proxy; namespace
mo-pitr-commit-b111224b0c-20261019 - Observed: 2026-10-19 (the scheduled run was queued before execution)
- The current run and the 2026-10-16 comparison run use the same regression-workflow head
a91f7fdfbdff2ba930cfdf434f9d2b6e4a419fc7.
Steps to reproduce
Run .github/workflows/pitr-backup-restore-regression-main.yml against official main, then inspect the SYS RESTORE SYS job's three LOAD DATA URL S3OPTION cases under tools/mo-regression-test/cases/big_data_test/02_LOAD_DATA/:
01_load_basic_for_100M.sql— no-index table, 100M rows.07_load_com_pk_index_100M.sql— composite PK/index table, 100M rows.05_load_pk_index_100M.sql— PK/index table, 100M rows.
All use the configured Guangzhou COS input and parallel 'true'. Do not change the data size or source when comparing.
Actual behavior
| Case | Prior main e8b3ed7f |
Prior main b24d1b31 |
Current main b111224b |
|---|---|---|---|
| TPCC 10W load (non-COS control) | 42 s | 42 s | 39 s |
| Basic 100M | 94 s | 95 s | 1,176 s (19m36s; ~12.4x) |
| Composite PK/index 100M | 128 s | 132 s | 2,343 s (39m03s; ~17.8x) |
| PK/index 100M | 121 s | 123 s | Still running after 38m as of 2026-10-19 21:23 CST |
The first two slow steps reported success, not SQL failure. The current job was still running when this issue was filed, so its final SQL-level output and row verification were not yet available.
Expected behavior
With the same 100M fixtures and comparable TKE topology, each of these loads previously finished in roughly 1.5–2.2 minutes, without a 12–18x increase.
Stability and controls
- Reproducer: severe slowdown observed in one current main run; independent 3/3 reproduction has not been done.
- Historical controls: main run 38787656121 and main run 38884188249.
- In-run control: TPCC load duration is unchanged (39 s versus 42 s), but it does not use the same COS 100M path.
- CN Pyroscope CPU samples during current composite-PK load (12:20–12:25 UTC) were near idle relative to the prior main load (10:23–10:28 UTC on Oct 16). This points to a wait/IO/coordination path rather than CPU saturation, but does not identify which layer is responsible.
- DN logs include a Log pod DNS lookup error, and one CN log shows an RC transaction retry. Neither is established as the cause.
Investigation requested
Reproduce the same three COS loads on an isolated current-main environment; compare COS request latency/throughput, CN load spans and wait profiles, network/DNS, and Log/DN health. Preserve SQL timing and loaded-row correctness. Distinguish MO loader regression from COS or cluster contention before assigning a code root cause.
Related
- #27775 was an earlier, closed indexed-only 2.2–2.4x regression with a nearly stable basic-load control. This report also affects the no-index case by ~12x, so it is not evidence that [Bug]: LOAD DATA into PK/index tables regresses by 2.2–2.4x on main #27775 recurred.
Activity
Ariznawlll commentedon Oct 20, 2026
二分结论:Basic 100M COS LOAD 的性能回归边界在 MatrixOne merge commit
7387b96afd3f996379e2ff48faeace9e1790fc35,对应 PR #30364(作者 @iamlinjunhong)。 其直接父提交e44d8f9bef62615237ec3618c04457e49bac6e7c正常;两者之间没有其他提交。e44d8f9(最后 good)7387b96(首个 bad,PR #30364)18d5335(后继提交,PR #30212)二分使用同一份 Basic 100M COS CSV、
parallel 'true'和单 case TKE 流程,以 600 秒为超阈值界线。因此可以定位第一个超阈值提交,但 bad 轮的 SQL 未完成、1 亿行校验被跳过,不能把 600 秒当作 SQL 完成耗时。此轮只二分了无索引 Basic 100M;原 issue 中两个带索引 LOAD 仍需单独验证。PR #30364 修改了并行 LOAD 的文件切分逻辑,和本 case 的
parallel 'true'路径相关。请结合该提交排查具体等待/IO 路径;二分定位提交边界,不等于已证明代码层根因。Issue 已分配给 PR 作者 @iamlinjunhong。iamlinjunhong commentedon Oct 20, 2026
已在#30519 中修复
Ariznawlll commentedon Oct 20, 2026
复测版本与场景
main:21966565287edf9f7d7f519af60d269711608945,已包含 修复 PR #30519 的 merge commit799523418e9f941afd65cd440d24e7fa0003a35e。3ca64578e5f26687b6343a8362f53bebfadecf6d(与 MatrixOne commit 不同)。SYS RESTORE SYSlane;仍用原来的三个 100M 行广州 COSLOAD DATA URL S3OPTION用例及parallel 'true'。性能复测结果
下表比较的是日志中 LOAD SQL 本身 的执行时间,不是整个 job 的耗时。正常基线来自原 issue 所列两轮相同用例的
main回归。b111224b21966565三个 SQL 均成功完成,耗时较报问题时缩短,但都没有恢复到原有性能;两个带索引场景仍需约 18–21 分钟。本轮
SYS RESTORE SYSjob 成功只证明 LOAD 能执行完,不代表性能问题已经修好。本轮 TPCC 10W 非 COS 对照步骤约 48 秒,正常基线约 42 秒,没有出现同等级退化;但它不走相同的 COS 路径,不能据此锁定根因。PR #30519 解决的是关闭 COS response 时额外读取剩余对象数据的问题,与并行 COS LOAD 路径相关;其 PR 描述并未声称 TKE/nightly 吞吐已恢复。现有修复后性能证据只有这一轮,不能直接断定剩余退化仍是同一代码原因,也不能排除 COS 或集群因素。请继续结合 COS 请求与吞吐、CN 等待/IO profile、网络及负载分析,并在可比环境重复跑这三个用例。
本次仅核对现有回归的执行日志与提交包含关系,没有额外独立做导入后 100M 行数或逐行一致性校验,也没有新增测试脚本。
证据
cost依次为269499.73ms、1233542.48ms、1097190.45ms。cost为1176539.16ms、2342277.38ms、2359703.62ms。结论
测试不通过。修复后性能有所改善,但 #30613 描述的三个 COS LOAD 场景仍明显慢于正常基线。
LeftHandCold commentedon Oct 21, 2026
补充 2026-10-20 晚启动的 1B BigData 实测,供本 issue 继续定位修复后的残留 LOAD 性能问题;这里记录相近症状,不预设与 PITR 100M 的残留慢点具有相同根因。
76e152a1dd02b7875829027117a6f6344d1f8d33,已确认包含 fix(fileservice): avoid draining COS responses on close #30519 的 merge commit799523418e9f941afd65cd440d24e7fa0003a35e。不是 workflow 仓库的 SHA。2c0b46570aef2c351acf62d4050896c1f76731f4,runnerf65333537ae226af628082b0f7b6a53a44097e5f。3 CN / 1 TN,经 proxy;namespacemo-bigdata-pilot-39450417086-2。e8b3ed7f21c2b1966d74814adaa2bcd96d8c129f。逐项核对五个 LOAD 的source_sha256相同。native-summary.json中 LOAD SQL 的execute_time_ms,不含 GitHub 排队、Pod 调度和 Python 安装:五项 SQL 均成功,LOAD 后 count 校验均通过:L1–L4 各 1,000,000,000 行,L5 999,999,999 行(原用例预期)。三项带 PK 的 LOAD 合计增加约 101 分钟;Basic/Sortkey 已回到这轮历史基线附近。本轮尚未结束,这不是完整 BigData 验收通过的声明。
可复核的 job:L2、L3、L4。
定位证据(UTC):
2026-10-20T18:12:08.358Z开始,CNmsslx的两个compileExternScan cost分别为 4.570 s、3.917 s(18:12:13 / 18:12:17);statement01a15a83-7a27-7687-96f1-54ac04149c0c。19:04:28.394Z开始,CNl2nds两个对应 compile cost 为 4.483 s、3.285 s(19:04:33 / 19:04:36);statement01a15ab3-63ec-733b-9ff5-3b237f77387a。19:15–19:20 UTCCPU profile 中,两个 CNt2bln/msslx约 79.5% / 81.2% inclusive CPU samples 位于 external 读取/CSV 转换调用路径;协调 CNl2nds同时有 CSV 转换、UnionOne、压缩/写入负担。这是一个五分钟窗口的 CPU 样本,不等于全程 wall time,也不能据此排除 IO 等待或锁定哪个 PR。建议继续围绕带 PK LOAD 的执行计划、输入扫描次数/分发和写入阶段做可控对照;#30421 新增 PK 冲突检查值得核对执行路径,但现有证据没有完成该 PR 的因果验证,不应去掉正确性校验来恢复吞吐,也不应把这份证据当作 #30519 无效或 #29571 复发。
iamlinjunhong commentedon Oct 21, 2026
补充 2026-10-21 在 129 上实际执行的原始用例复测,测试版本为 PR #30697 的
579e0a1fad124ac4cafd77a88b018919d80dd21f,运行时确认mo_pk_check_by_cn=OFF(默认值,未执行 SET),mo_pk_check_by_dn=OFF。复用原始输入、冻结的测试脚本,fresh MO 串行执行;Slot A / NUMA0 / 28 CPU,MO 内存 84 GiB、GOMEMLIMIT=76GiB、GOGC=150。每项新旧成功样本的性能指纹仅
mo_commit不同。两项工作流均成功,无 OOM、重启,清理完成。TPCH 的 109 次采样中 CN spill_disk reserve/release/reject/reconcile amount 均为 0,未复现原 LOAD spill budget 错误。
结果支持默认 OFF 下 TPCC 恢复到旧基线附近、TPCH 1T 原始 LOAD 成功。这是单轮实测,不代表统计等价或同 SHA 的 ON/OFF 因果证明。TPCH 启动前清理了获准删除的旧数据库目录,可用空间高于原失败现场;未执行 TPCH 查询。
这两项是 129 上的关联回归验证,不是本 issue 的 TKE/COS 100M 原始三场景验收,不能据此宣称 #30613 的 COS 性能已恢复或关闭本 issue。修复与开关实现见 #30697。
XuPeng-SH commentedon Oct 22, 2026
2026-10-21 targeted TKE rerun did not reach the LOAD cases
The dispatched run 39540728649 resolved the MatrixOne target to
579e0a1fad124ac4cafd77a88b018919d80dd21f, butSETUP MO TEST ENV / Create MO Clusterfailed beforeSYS RESTORE SYSstarted. The SQL readiness probe returnedERROR 20508: all CN servers are busy, possibly due to too many active transactionson 23 attempts and then timed out. The three 100M COS LOAD cases were skipped.This run provides no performance result for the fix and does not change the open acceptance status. The 129 TPCC/TPC-H measurements in the previous comment remain related regressions, not the required TKE/COS 100M validation.
Ariznawlll commentedon Oct 22, 2026
https://github.com/matrixorigin/mo-nightly-regression/actions/runs/39717189326
恢复了,降级观察一下
Ariznawlll commentedon Oct 26, 2026
已修复 https://github.com/matrixorigin/mo-nightly-regression/actions/runs/40147374600