You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: PR #26284 导致 Big Data Test INSERT...SELECT...ORDER BY spill 磁盘满(no space left on device),级联 inner join 返回 count=0 #26352
SQL:insert into big_data_test.insert_into_table_limit select * from big_data_test.table_basic_for_load_100M order by col4 limit 5000000。
2026-10-08 02:50:29 UTC,CN nightly-regression-dis-tp-cn-ww2zl 的日志记录:write /tmp/mo-top-spill-2730364518: no space left on device。同一 statement 在 02:50:24 UTC 已出现多个 spill 文件写入失败。目标表最终 count(*) = 0,期望 5,000,000。
测试不通过。2026-11-10 的 4.2-dev Big Data Test 1Y 再次复现 ORDER BY ... LIMIT 写 TOP spill 文件时 no space left on device;后续 Inner Join 的 count(*)=0 是插入失败、目标表为空造成的连带结果,不是独立的 Inner Join 计算错误。
08 Limit Insert job 执行 insert into big_data_test.insert_into_table_limit select * from big_data_test.table_basic_for_load_100M order by col4 limit 5000000。2026-11-10 02:20:02 UTC,CN nightly-regression-dis-tp-cn-995z2 记录 write /tmp/mo-top-spill-621706765: no space left on device;客户端于 02:20:04 UTC 收到错误 20101。随后目标表 count(*)=0,预期为 5,000,000。
08 Limit Insert job:02:26:10 UTC 开始执行 insert into big_data_test.insert_into_table_limit select * from big_data_test.table_basic_for_load_100M order by col4 limit 5000000;02:27:19 UTC 返回 20101: write /tmp/mo-top-spill-1364833757: no space left on device。随后独立 count(*) 为 0,预期 5,000,000。
同一时间窗口的 TKE Loki 日志显示 CN nightly-regression-dis-tp-cn-d9v6k 先在 02:26:51–02:27:18 UTC 多次记录 TOP spill ENOSPC,入口 CN 随后把该错误返回给客户端。Grafana Prometheus 的 node_filesystem_avail_bytes{instance="10.128.0.52:9100",mountpoint="/"} 显示故障 CN 所在节点根盘(总约 49.15 GiB)可用空间从 02:26:00 UTC 的约 14.91 GiB 降至 02:26:30 UTC 的 0 GiB,02:27:30 UTC 回升至约 28.66 GiB;该 CN 容器可写层在 02:27:00 UTC 约使用 8.96 GiB,CN 重启数为 0。CN 配置虽有 DirectPV 缓存卷,但该卷不等同于 TOP spill 使用的 /tmp 根盘空间。
Activity
Ariznawlll commentedon Oct 8, 2026
补充 2026-10-08 Big Data Test 1Y(4.2-dev)复现证据:
c3fa851d810306fac9b8dc3381a49d8193f27a19;本次运行,Limit Insert job。insert into big_data_test.insert_into_table_limit select * from big_data_test.table_basic_for_load_100M order by col4 limit 5000000。nightly-regression-dis-tp-cn-ww2zl的日志记录:write /tmp/mo-top-spill-2730364518: no space left on device。同一 statement 在 02:50:24 UTC 已出现多个 spill 文件写入失败。目标表最终count(*) = 0,期望 5,000,000。现象与此 issue 的
INSERT ... SELECT ... ORDER BY LIMIT写满/tmp/mo-top-spill-*相同。这里仅补充再次复现的证据;本次日志尚不能证明仍由 #26284 的代码变更直接导致。Ariznawlll commentedon Nov 10, 2026
结论
测试不通过。2026-11-10 的 4.2-dev Big Data Test 1Y 再次复现
ORDER BY ... LIMIT写 TOP spill 文件时no space left on device;后续 Inner Join 的count(*)=0是插入失败、目标表为空造成的连带结果,不是独立的 Inner Join 计算错误。关键证据
4.2-dev@ba2a0caee86dd0f660776560a2a68943abb11df2;完整 run。insert into big_data_test.insert_into_table_limit select * from big_data_test.table_basic_for_load_100M order by col4 limit 5000000。2026-11-10 02:20:02 UTC,CNnightly-regression-dis-tp-cn-995z2记录write /tmp/mo-top-spill-621706765: no space left on device;客户端于 02:20:04 UTC 收到错误 20101。随后目标表count(*)=0,预期为 5,000,000。os.CreateTemp("", "mo-top-spill-*"),即默认临时目录;CN 配置的 2 TB 缓存卷不能直接视为/tmp容量。事发节点10.128.0.198的根文件系统监控在 02:20:00 UTC 采样仍有约 9.38 GiB 可用,并在失败后回升;这是间隔采样,不能证明写入瞬间的/tmp或容器可写层仍有空间。待解决点
/tmp实际挂载、容器可写层/临时存储配额、spill 峰值与其他占用,才能判定空间耗尽是配置不足、spill 量异常还是清理问题。本轮证据只确认同一失败现象再次出现,不能单独证明仍由 PR fix: distribute sink scan shuffle hashbuild #26284 导致。insert_into_table_limit的 Inner Join 在 Limit Insert 失败时标记为前置阻塞,避免产生第二个误导性的红灯。Ariznawlll commentedon Nov 12, 2026
结论
测试不通过。2026-11-12 的 4.2-dev Big Data Test 1Y 再次复现本 issue 的 TOP spill 写入
/tmp时 ENOSPC;Limit Insert 未写入数据,后续 Inner Join 的count(*)=0是连带结果。关键证据
4.2-dev@5be77ac92b64eba343f1659c21d24c886c6bb98d;workflowmain@224aa2fb9909beff2d1222b1a80ced9c5fe09bd9;namespacemo-big-data-43129602219-1。完整 run。insert into big_data_test.insert_into_table_limit select * from big_data_test.table_basic_for_load_100M order by col4 limit 5000000;02:27:19 UTC 返回20101: write /tmp/mo-top-spill-1364833757: no space left on device。随后独立count(*)为 0,预期 5,000,000。nightly-regression-dis-tp-cn-d9v6k先在 02:26:51–02:27:18 UTC 多次记录 TOP spill ENOSPC,入口 CN 随后把该错误返回给客户端。Grafana Prometheus 的node_filesystem_avail_bytes{instance="10.128.0.52:9100",mountpoint="/"}显示故障 CN 所在节点根盘(总约 49.15 GiB)可用空间从 02:26:00 UTC 的约 14.91 GiB 降至 02:26:30 UTC 的 0 GiB,02:27:30 UTC 回升至约 28.66 GiB;该 CN 容器可写层在 02:27:00 UTC 约使用 8.96 GiB,CN 重启数为 0。CN 配置虽有 DirectPV 缓存卷,但该卷不等同于 TOP spill 使用的/tmp根盘空间。待解决点
/tmp容量/挂载配置是否不足,以及其他节点占用;本轮不能单独证明仍由 PR fix: distribute sink scan shuffle hashbuild #26284 的代码变更导致。insert_into_table_limit的 Inner Join 在前置插入失败时报告阻塞,避免第二个误导性的红灯。jiangxinmeng1 commentedon Nov 12, 2026
补充定位:#27112 已合入
main。该 PR 将 TOP 的大 LIMIT spill 从os.CreateTemp("", "mo-top-spill-*")改为通过proc.GetSpillFileService()写入 LOCAL FileService;在本测试集群,LOCAL 位于 DirectPV 缓存卷。因此,本 issue 中 TOP spill 写入 Pod/tmp、耗尽节点根盘的路径已在main上修复。2026-11-11 的 main 成功运行执行相同的
INSERT ... SELECT ... ORDER BY col4 LIMIT 5000000时,三台 CN 的根盘几乎不变,DirectPV 盘的观测新增峰值为每节点约 14–29 GiB。相比之下,2026-11-12 失败的4.2-dev@5be77ac仍使用os.CreateTemp写/tmp,节点根盘耗尽并报 ENOSPC。结论:**本 issue 的根盘写满问题在
main上已由 #27112 修复;4.2-dev尚未包含这项 TOP spill 路径修改。**仍需为 spill 所在磁盘保留足够空间。fix: use LOCAL disk for TOP spill on 4.2-dev (#32619)