Skip to content

[Bug]: Main TPCH Q5 regresses from ~47s to ~194s; LOAD locality regression reproduced across #30421 #30821

Closed

Description

@LeftHandCold

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Related issues/PRs:

Branch Name

main

Commit ID

  • Latest affected nightly: 67c91c5bdf6c669f63331778634215f7aa3e8f58.
  • Earlier fast nightly: e44d8f9bef62615237ec3618c04457e49bac6e7c.
  • First completed slow 1T sample examined: beffc64c486d369406a41cdb1447b120bc93cb41.
  • Exact adjacent commits used to reproduce the layout change, not the full 1T runtime ratio:
  • Later Main used for ON/OFF layout diagnostics: a949c88af0ed2cc4fe98e2ac32f0732a1235bd85.

Other Environment Information

Latest run: 39622927494, attempt 2 / AP job 119363428098.

  • Namespace: mo-main-family-39622927494-2.
  • Topology: 1 TP CN + 2 AP CNs; each CN 14 CPU / 55 GiB, MemCache 16 GiB, GOMEMLIMIT 25000 MiB, GOGC 200. TN: 14 CPU / 32 GiB.
  • AP pods: nightly-regression-dis-ap-cn-8gvf6, nightly-regression-dis-ap-cn-c8w2h.
  • TPCH query tool: matrixorigin/mo-tpch@77081d5b3f24fec6e57b660427f0470ff73639ab.
  • Actual AP LOAD checkout: matrixorigin/mo-load-data@f0fc577, matching the fast sample. The environment also declares a different MO_LOAD_COMMIT_ID; the actual checkout/execution, not that variable alone, was checked.
  • The declared resources and relevant query/load tools match the fast sample. Physical nodes, storage state, background work, and physical objects are not identical controlled variables across historical nightly runs.

Actual Behavior

1. Successful queries have sustained, material latency increases

Dates below are query completion dates in UTC+08:00. Values are from raw cost.txt, not overall workflow duration. SF10/SF100 each have three formal rounds; SF1000 has two. The totals below are averages of those rounds.

Scale Oct 17 fast mean (s) Oct 22 mean (s) Increase
10G 14.276667 25.779333 80.6%
100G 129.878667 252.224000 94.2%
1T 1418.762500 2179.753500 53.6%

The latest 1T result improves about 8.5% over Oct 21's 2382.7075 s, but remains substantially slower than the earlier Main baseline.

1T query Fast round 1 / 2 (s) Latest round 1 / 2 (s)
Q1 165.378 / 164.088 199.705 / 194.114
Q3 48.115 / 47.849 122.863 / 120.227
Q5 46.692 / 46.696 194.377 / 193.853
Q6 21.988 / 21.843 26.467 / 26.193
Q12 50.919 / 53.592 110.269 / 110.484
Q18 190.713 / 200.498 306.250 / 306.883
Q21 133.078 / 133.868 240.754 / 251.275

This is not a single cold round or a query timeout. The reported queries completed successfully. Different queries are affected by different amounts; this is not evidence of a uniform fourfold machine slowdown.

Repeated Q5 evidence:

Date (UTC+08) MO Job Q5 round 1 / 2 (s)
Oct 17 e44d8f9bef62 117057975744 46.692 / 46.696
Oct 19 beffc64c486d 117714712129 196.841 / 196.823
Oct 20 8e63625c4e9b 118214981960 196.198 / 197.184
Oct 21 76e152a1dd02 118733162895 206.781 / 207.032
Oct 22 67c91c5bdf6c Latest job above 194.377 / 193.853

Oct 18 did not produce a complete 1T query sample and is not treated as a good endpoint. A 4.2 sample at 7eba89b210cb5c0f8b5d1102ad450084b65c9c88 ran Q5 in 49.532 / 50.902 s; that is supporting evidence, not a controlled Main A/B.

2. Server execution and RPC/profile evidence

Latest Q5 round 2:

  • Statement ID: 01a1605c-f115-78c0-affa-bcacfd6b1537.
  • Coordinator: AP 8gvf6.
  • UTC: 2026-10-21 21:27:46.204 to 21:31:00.017.
  • UTC+08: 2026-10-22 05:27:46 to 05:31:00.
  • Server Exec.Run=193.812911402s; client cost 193.853 s.

This closes the client/server timing chain: the delay is in query execution, not LOAD being included in the reported cost or result-file comparison.

Prometheus query:

sum by (pod, type) (
  mo_rpc_network_bytes_total{
    namespace="mo-main-family-39622927494-2",
    pod=~".*ap-cn.*"
  }
)

Only output deltas are summed. input is not added again. Counters are monotonic within the selected windows.

Sample UTC observation window Combined AP output delta
Fast Main Oct 16 18:30:30-18:31:30, enclosing Q5 ~2.12 GiB
First slow Main Oct 18 20:51:10-20:53:55, within Q5 ~66.44 GiB
Oct 21 slow Main Oct 20 20:32:00-20:34:30, within Q5 ~56.87 GiB
Latest Main Oct 21 21:27:45-21:31:00 82.217656 GiB
4.2 comparison Oct 20 18:24:30-18:25:15 ~2.12 GiB

Latest per-pod output: 42.357137 GiB on 8gvf6, 39.860519 GiB on c8w2h.

These are pod-wide MORPC application bytes, not exact per-statement accounting or physical NIC bytes. Scrape boundaries and other activity prevent quoting an exact SQL amplification ratio. Nevertheless, the slow sample's interior window alone contains tens of GiB more traffic.

Pyroscope exclusive syscall-leaf CPU samples show the same change:

Call chain Fast Main Latest Main
morpc.server.startWriteLoop -> net.Write -> syscall 0.115% 12.991%
morpc.remoteBackend.readLoop -> net.Read -> syscall 0.123% 7.340%

These percentages are CPU sample composition, not wall-time attribution. LZ4 decoding, hash lookup, and copying also remain material costs.

The fast Q5's two large dispatch row-count arrays together cover approximately 6 billion rows. One AP dispatches almost entirely to the first 14 of 28 buckets; the other to the last 14, with very small boundary crossings. This supports effective range locality in the fast sample. Absence of equivalent imbalance logs in the slow sample is not used as proof that every bucket received equal work.

The latest TPCC/Sysbench job finished at UTC 19:00:25, more than two hours before this Q5. Concurrent active TPCC is therefore not a sufficient explanation for the latest slow query. Other background or shared-node interference is not fully excluded.

Expected Behavior

  • Successful bulk loading should not unnecessarily destroy source-range locality and impose large, persistent costs on subsequent distributed joins.
  • Query-stage recovery must be verified independently of LOAD success and TPCC recovery.
  • Preserve correct results and the explicitly selected primary-key validation policy. Disabling a check is a policy change, not an equivalent-semantics fix.

Steps to Reproduce

A. Original distributed TPCH observation

Use the frozen tools, schemas, data and resource configuration of the linked runs. Load fresh TPCH tables, then execute the existing Q5/Q3 workload, preserving warmup/formal-round results, plans, object ranges and RPC counters. The original Q5 SQL is unchanged.

Historical nightly results establish the repeated slowdown, but are not a fixed-node/identical-object A/B.

B. Completed bounded reproduction of the LOAD-layout regression

This was executed locally on macOS arm64 / Go 1.27.1 in isolated worktrees using the real authenticated embedded 2CN/TN/LogService fixture and MySQL protocol. The local LOAD plan chose one CN with three readers. It is not a 1T throughput test or a claim that all production topology dimensions were reproduced.

Run the same input and SQL separately on exact parent 4e32549598 and merge ba0cd6dd9e. Native inputs are identical across those two revisions. Do not modify production data.

Generate the same ordered input on a filesystem admitted by the isolated instance's file-access policy:

with open("ordered.csv", "w", encoding="ascii", newline="") as f:
    payload = "abcdefgh" * 32
    for i in range(2_000_000):
        f.write(f"{i // 4 + 1},{i % 4 + 1},{payload}\n")

The generated file is 531,555,580 bytes. The SQL diagnostic uses the same connection for its session setting and LOAD:

CREATE DATABASE tpch_load_locality_diag;
USE tpch_load_locality_diag;
SET SESSION mo_pk_check_by_dn = OFF;

CREATE TABLE loaded (
    k BIGINT NOT NULL,
    seq INT NOT NULL,
    payload VARCHAR(256),
    PRIMARY KEY (k, seq)
);

EXPLAIN ANALYZE
LOAD DATA INFILE '/absolute/admitted/path/ordered.csv'
INTO TABLE loaded FIELDS TERMINATED BY ',' PARALLEL 'true';

SELECT COUNT(*), COUNT(DISTINCT k,seq) FROM loaded;

SELECT rows_cnt,
       bit_cast(`min` AS BIGINT), bit_cast(`max` AS BIGINT)
FROM metadata_scan('tpch_load_locality_diag.loaded','k') g
ORDER BY bit_cast(`min` AS BIGINT);

EXPLAIN ANALYZE
SELECT SUM(seq) FROM loaded WHERE k BETWEEN 1000 AND 1010;

Results from the executed diagnostic:

Observation Exact parent #30421 merge
Input readers 3 3
Data route Reader-local writers DEDUP(FAIL) with composite-PK hash shuffle before writers
Object count 6 8
Both total and distinct-PK counts 2,000,000 2,000,000
Range predicate's table-scan outputRows 44 44
Same range predicate's inputBlocks 1 4
Same range predicate's inputRows 8,192 32,768

Parent object [min(k),max(k)] ranges:

[1,106496] [106497,166946] [166946,273442]
[273442,333474] [333474,439970] [439970,500000]

Four large objects after #30421:

[1,480555] [1,480878] [2,480831] [2,481476]

The other four tail objects also overlap broadly, spanning approximately 139,000-500,000. This is a physical-locality/read-work regression; the diagnostic did not observe wrong counts or duplicate primary keys.

Both real-SQL diagnostic tests passed their correctness checks (7.43 / 7.61 s including fixture work). Those durations are not presented as LOAD throughput measurements. No fake storage, injected planner statistics or modified product code was used for this adjacent-commit layout comparison.

C. Residual layout issue after #30527

On later Main a949c88af0, containing both #30527 and #30697, repeat fresh loads of the same file into separate tables with mo_pk_check_by_cn=OFF and ON respectively, keeping mo_pk_check_by_dn=OFF in both.

  • OFF: the same six largely contiguous object ranges as above.
  • ON: key-only validation branch, but the shared SINK -> SINK_SCAN writer consumes merged reader streams; five overlapping objects were observed:
[1,370338] [34817,403106] [73729,439970]
[110593,476834] [145409,500000]

Both row-count checks still pass. The particular k BETWEEN 1000 AND 1010 probe reads one block in both ON/OFF cases here; the original four-block result must not be attributed to the post-#30527 path. The residual problem is demonstrated by overlapping ranges and the compiled source-merge topology.

A supplementary small multi-CN range-join diagnostic also completed with correct results and higher observed RPC output for the ON-loaded input. That experiment used inflated optimizer cost statistics to select the multi-CN path and pod/process-wide counters including background work. It is supporting evidence only, not a production TPCH performance ratio or a controlled per-query byte measurement.

Additional Information

Root-cause analysis and confidence

Proven: #30421 introduces the reproduced source-range locality loss. It changes ordinary real-PK LOAD from skipping dedup to using DEDUP(FAIL), whose hash-partitioned output feeds data writers.

Proven in the bounded later-Main diagnostic: #30527 removes full-row hash output from the write branch, but does not preserve original reader partitions through the shared Sink. Preserving row values is not the same as preserving reader-to-writer range affinity.

Leading explanation for the historical TPCH slowdown: changed object layout weakens effective range locality; object-level CN ownership and row-level JOIN ownership diverge, increasing cross-CN pipeline traffic. The real query timing, RPC deltas, profiles, and fast-sample dispatch arrays support this chain.

Not yet proven: that this mechanism accounts for all of the 53.6% suite slowdown or the entire Q5 ratio. Historical 1T object min/max inventories and complete physical plans are unavailable, and a fixed-node 1T end-to-end A/B has not been completed.

Relevant code at the tested revisions:

Alternatives checked

  • Same large input files and split layout: lineitem 813,745,803,803 bytes; orders 180,929,739,251 bytes; fast/first-slow/latest each use 2 CNs x 10 readers with matching split byte offsets. The sampling-context failure does not collapse these two large loads to one reader/CN.
  • plan/shuffle.go, plan/stats.go, plan/join_order.go, dispatch, shuffle/shuffleV2 are unchanged between the fast and first completed slow endpoints. This does not exclude changes elsewhere, but supports investigating physical input changes rather than assuming a new shuffle implementation.
  • Both fast and slow historical AP deployments already span nodes. Physical-node changes remain a confounder for the exact runtime, not an explanation for the adjacent-commit layout reproduction.
  • Both formal Q5 rounds are slow, with server timing matching the client. Waiting for a warm disk cache does not remove required cross-CN row movement.
  • The latest Q5 begins more than two hours after the TPCC/Sysbench job completes. Background Merge/storage/shared-node effects remain unquantified.

Relationship to the latest mitigation

#30697 merged at 2026-10-22 00:48:51 UTC / 08:48:51 UTC+08, commit 460b96365a381e74916b044a99fc9423c33ad3fd. The affected nightly 67c91c5b does not contain it; it does contain #30527 (27131f3838d3f4be77766d4dbb8e3e329d65e5f3).

#30697 defaults mo_pk_check_by_cn to OFF and restores sampling context. The bounded OFF experiment recovers source-local object ranges. This makes a fresh-load TPCH query acceptance run worthwhile, but does not establish that the query regression is already fixed.

Important boundaries:

  • OFF changes validation semantics and can admit duplicate input PKs. Do not describe it as an equivalent-checking optimization or blindly recommend it for arbitrary business imports.
  • Upgrading only the query binary, or changing the setting after loading, does not reorganize previously written objects. Acceptance must distinguish fresh data from reused old objects.
  • #30520's #30697 validation is TPCC; #30544's validation is LOAD-only. Neither proves distributed Q5/Q3 recovery.

Acceptance criteria

  • Pin two AP nodes/resources, tools, input files and session policy; record actual image SHA and LOAD/query plans.
  • Fresh-load the same data using Main containing fix(load): restore sampling context and make CN PK checks opt-in #30697. Preserve object PK min/max, row counts and relevant table statistics.
  • Run Q5/Q3 warmup and both formal rounds. Compare results, server/client timing, read work, spill and AP RPC output with a controlled baseline; do not use overall job success as performance acceptance.
  • Confirm that improved timing is accompanied by restored locality/reduced unnecessary transmission, rather than an unrelated reduction in checked work.
  • If ON is required, validate the remaining source-partition mixing separately, preserving duplicate rejection, rollback and session usability. OFF-path recovery must not be reported as an ON-path fix.
  • If the default fresh-load path remains slow, separate load-version/layout effects from query-execution-version effects in an isolated, compatibility-checked A/B before assigning the remaining loss to another PR.

No new full Daily was dispatched, no production cluster was changed, and no product patch is included in this report. This issue intentionally keeps TPCH query-stage acceptance visible even if the related TPCC and LOAD-only issues are closed.

Activity

  1. iamlinjunhong commented on Oct 23, 2026

    @iamlinjunhong
    Contributor

    补充 2026-10-23 在 129 上完成的 fresh 1T LOAD + 双 CN Q5/Q3 验收:包含 #30697 的版本使用默认 mo_pk_check_by_cn=OFF 重新导入后,Q5/Q3 已恢复到旧快基线水平。

    • 新版:a949c88af0ed2cc4fe98e2ac32f0732a1235bd85,包含 fix(load): restore sampling context and make CN PK checks opt-in #30697 合并点 460b96365a381e74916b044a99fc9423c33ad3fd;旧快基线:e44d8f9bef62615237ec3618c04457e49bac6e7c。均使用官方镜像并记录实际 image ID/RepoDigest;a949 是本次验证版本。
    • 复用原始 TPCH SF1000 八文件(共 1,169,324,773,109 字节),两版分别 fresh LOAD,未跨版本复用数据库对象。新版实际导入连接确认默认 CN=0、DN=0,未执行 SET;旧版尚无 CN 开关,DN 默认0。新版 lineitem/orders LOAD 计划无 DEDUP。
    • 同一台129、两台实际参与执行的 AP CN,每台14逻辑CPU/55GiB、16GB fileservice memory cache、GOGC=200、GOMEMLIMIT=25000MiB;TN14CPU/32GiB、Log4CPU/8GiB。两组实际 cpuset/NUMA、资源和归一化配置相同,使用各自独立 DISK-V2 存储前缀。
    • 固定原始工具:mo-tpch@77081d5b3f24fec6e57b660427f0470ff73639ab、mo-load-data@f0fc5772667efd7908b756b728ed4a598a7fb0e8。SQL/DDL/golden/比较器未变;两份 runner 均禁用同一条全机 drop_caches 命令以保护其他服务。

    每版每条查询一次预热、两轮正式,串行执行。以下来自原工具 cost.txt 的 SQL 客户端耗时,未计入结果比较或单独 EXPLAIN ANALYZE 的耗时,未挑选较快轮次。

    查询 旧版正式1 / 2(秒) 新版默认OFF正式1 / 2(秒) 旧版均值(秒) 新版均值(秒) 新版耗时变化
    Q5 34.944 / 35.127 33.164 / 33.131 35.0355 33.1475 −5.39%
    Q3 37.332 / 37.086 33.934 / 34.053 37.2090 33.9935 −8.64%

    预热另行保留:旧版 Q5/Q3 为38.855/37.869秒,新版为37.015/34.519秒。八表行数均符合预期(lineitem 5,999,989,709、orders 1,500,000,000),两版合计12次查询的原始 golden 校验全部通过。lineitem LOAD 耗时旧版2137.074秒、新版2140.176秒,约+0.15%。

    性能恢复同时有布局和传输量证据:

    证据 旧版 新版默认OFF
    Q5 两轮平均 AP MORPC 输出 2.122073 GiB 2.114919 GiB
    Q3 两轮平均 AP MORPC 输出 0.144383 GiB 0.116580 GiB
    lineitem 对象数 10,178 10,178
    orders 对象数 1,908 1,908
    lineitem 对象范围宽度总和 / orderkey键域 1.107545173 1.107545173
    orders 对象范围宽度总和 / orderkey键域 1.926939824 1.926939824

    两代对象 ID 无交集,但每个对象的行数、metadata_scan返回的大小、orderkey min/max组成的多重集合完全一致;各组查询前后对象清单均未变化。lineitem这里比较的是复合主键第一分量 l_orderkey 的范围。正式查询期间两台CN均有显著RPC输出,另采集的诊断执行计划包含两个实际CN地址。

    RPC为查询窗口内进程级 MORPC output 增量,两台AP求和一次,计数单调,未叠加input,不是精确SQL归因或物理NIC字节。相邻查询短间隙的最大合计输出为新版45,944字节、旧版25,625字节,远小于正式窗口。保留采样未观察到spill reserve/reject;诊断plan的SpillSize为0,各节点无OOM、RestartCount=0。测试正常退出,任务实例/临时数据/租约已清理,原始输入及结果证据保留。

    结论范围:默认OFF、重新导入后的Q5/Q3,在上述129同机双CN环境已恢复;无需追加默认路径补丁。 已有旧数据对象不会因升级自动重新布局。此结果不替代TKE物理网络/存储环境、完整TPCH套件或CN检查ON路径验收,也不构成同SHA ON/OFF的严格因果实验;OFF保留其既定校验策略差异。

    证据与测量边界

    固定顺序为新版、旧版,每版两轮正式;结果属于工程验收,不宣称统计等价。正式计时为原客户端时间,未导出正式statement Exec.Run;远端operator统计未完整导出。新版Q3单独analyzed plan采于同镜像重启后,仅作诊断,不混入正式成绩。新版首次server stdout在补采诊断时被覆盖;原始正式工具日志、结果、计时、探针、Q5plan、对象清单及首次运行Docker检查均保留。

    129证据:/root/issue-30821-20261023 和 /data3/mo-benchmark-runs/private-issue30821-20261023-r4/slot-a。新旧压缩包均在收回本地后校验SHA256一致:

    • new-evidence.tar.gz: ac7e04f387ba145c4bffe3988a21ce09a0e12a655b8008e0c6eeb9393f7c6043
    • good-evidence.tar.gz: e02c5a2a9c168942400d66d0883cd1048412364727922b15de47407f903705e4
  2. Ariznawlll commented on Oct 23, 2026

    @Ariznawlll
    Collaborator

    测试版本

    结合本 issue 已完成的双 CN fresh-load 对照,以及 2026-10-23 当前 main 的完整单机 TPCH 回归,按默认 mo_pk_check_by_cn=OFF、重新导入后的查询性能恢复范围完成本单验收并关闭。

    • 本轮 MO:1393cb552456adb1b84041ca07a215baed494efc,已包含 fix(load): restore sampling context and make CN PK checks opt-in #30697 合并提交 460b96365a381e74916b044a99fc9423c33ad3fd。
    • 本轮环境:129 单机 AP nightly,Slot B;run 39905966299 / attempt 1,job 120259958668。
    • 工作流:codex/129-local-subject-quota-bypass,workflow SHA 9b6151429f19f16f3e7a3523d268f3cbd5e3de00。工作流分支与 MO 产品提交分别记录。
    • 本次复核 GitHub 已完成步骤状态、test_nightly.TPCHIndex / TPCHIndexItem 入库结果及该版本的性能门禁脚本,没有另行派发测试。

    原问题验证

    原问题不只是 LOAD 能否成功,而是 LOAD 后数据局部性变化导致分布式查询耗时及传输量明显增加。原 TKE 历史样本中 Q5 从约 47 秒升至约 194 秒,完整 1T 查询平均总耗时也明显增加。

    本 issue 的 2026-10-23 双 CN 验证记录已经给出直接针对该问题的对照:

    • 旧快版本 e44d8f9bef62615237ec3618c04457e49bac6e7c 与包含 fix(load): restore sampling context and make CN PK checks opt-in #30697 的 a949c88af0ed2cc4fe98e2ac32f0732a1235bd85,分别 fresh LOAD 原始 SF1000 八表,没有跨版本复用数据库对象。
    • 同一台 129、两个实际参与查询的 AP CN,每个 14 CPU / 55 GiB;固定工具、输入、资源和归一化配置。新版实际 LOAD 连接确认 CN=0、DN=0,未执行 SET。
    • 每版每条 Q5/Q3 一次预热、两轮正式;八表行数正确,合计 12 次查询 golden 校验通过。
    指标 旧快版本 新版默认 OFF
    Q5 正式轮平均耗时 35.0355 秒 33.1475 秒(−5.39%)
    Q3 正式轮平均耗时 37.2090 秒 33.9935 秒(−8.64%)
    Q5 两轮平均 AP MORPC output 2.122073 GiB 2.114919 GiB
    Q3 两轮平均 AP MORPC output 0.144383 GiB 0.116580 GiB

    两版 lineitem / orders 的对象行数、大小、orderkey min/max 多重集合一致,对象 ID 无交集,查询前后对象清单未变化。该记录同时给出了两 CN 实际参与、无 OOM/重启、采样未观察到 spill reserve/reject、清理完成的证据。

    因此,已有证据同时覆盖查询结果、延迟、对象布局与传输量恢复,不是仅凭 LOAD 成功或步骤绿色判断。MORPC 数据仍按原记录解释为查询窗口内进程级 output 增量,不冒充精确单条 SQL 网络计费;这是已有验证结果,本次没有重新执行该对照。

    本轮 main 完整 TPCH 回归

    本轮 TPCH 1G、10G、100G 各 5 轮,1T 3 轮,每轮 22 条。通过 TPCHIndexItem 按 action_id=39905966299、规模和轮次聚合核对:共 396 条查询记录,全部 PASS。

    1T 的逐轮数据如下,单位为秒:

    指标 第 1 轮 第 2 轮 第 3 轮 三轮平均
    Q3 48.336 50.647 48.493 49.159
    Q5 45.289 48.376 45.859 46.508
    22 条查询合计 1333.854 1319.139 1321.727 1324.907

    三轮均成功,Q3/Q5 没有表现出原问题中的持续大幅变慢。此处为查询耗时,不包含 LOAD、mo-dump 或整个 job 时长。

    GitHub 步骤时间(北京时间):

    • TPCH 1T:14:55:21–16:56:42,success;这是包含 LOAD、查询和清理的完整步骤时间。
    • TPCH performance collect and compare:16:56:42–16:57:26,success。
    • 复核时 AP job 仍在继续执行 Vector,不能将已完成 TPCH 的结果写成全部 AP / nightly 已成功。

    同一单机线路的历史参考

    另取此前正常完成的 129 main nightly run 38591020147,MO c3c458159523,与本轮 TPCHIndex 汇总值比较:

    指标 历史正常运行 本轮 耗时变化
    10G 22 条总耗时 12.748 秒 11.404 秒 −10.5%
    100G 22 条总耗时 131.782 秒 132.617 秒 +0.6%
    1T 22 条总耗时 1340.943 秒 1324.900 秒 −1.2%
    1T Q3 48.401 秒 49.158 秒 +1.6%
    1T Q5 44.683 秒 46.508 秒 +4.1%

    入库汇总字段按毫秒取整,与逐轮重新计算均值略有差异。新旧性能系列指纹不同,历史为 main-129-family-v1-daily-ab-half-host-b0b89e718282,本轮为 main-129-family-v1-daily-ab-half-host-f236c91d5715;因此该表只是同一单机线路的历史参考,不代替固定配置 A/B。

    不能直接拿本轮单机 Q5 46.508 秒与原 TKE 双 AP 的约 194 秒计算修复比例。分布式恢复的主要依据仍是上面的双 CN fresh-load 对照,本轮完整套件提供补充证据。

    性能收集与门禁含义

    四个规模的汇总及逐条数据均已入库,说明本轮 TPCH 性能收集正常。

    但本轮新性能系列的 1T 当前仅有本轮记录。门禁脚本要求 5 个同系列历史样本才能正式比较;不足时输出 WARMUP、保留当前数据并暂缓回归判定,步骤仍能成功。正式比较按 22 条查询耗时总和及历史基线进行,也不等同于每条 SQL 单独完成恢复验收。

    所以这里不把 collect and compare 的绿色当作自动性能验收已完成;本单结论来自逐条成绩、历史参考以及已有受控双 CN 布局/RPC 对照。

    修复语义与保留边界

    1. fix(load): restore sampling context and make CN PK checks opt-in #30697 的默认 OFF 路径恢复了本次 fresh-load 查询所需的局部性;已有双 CN 结果不要求追加默认路径补丁。
    2. OFF 改变主键校验策略,不能描述为保持完全相同检查语义的纯性能优化。本单关闭不表示 CN 检查 ON 时的源分区混合问题已经修复或完成验收。 若使用 ON,应单独验证布局、查询性能、重复拒绝与回滚。
    3. 升级查询二进制或加载后修改开关,不会自动重排已有对象。旧数据对象的恢复不能由 fresh-load 结果代替。
    4. 同机双 CN 对照没有完整复刻 TKE 物理网络/存储环境;本轮完整 TPCH 是单机线路。仍不宣称原 TKE 完整套件已完成严格同节点 A/B。
    5. 本轮逐条数据提供 PASS/耗时证据;运行中的 GitHub job 日志下载 API 当时返回 404,未重新扫描本轮全部服务器日志。双 CN 对照中的行数、资源和清理证据引用原验证记录,不冒充本次新采集。

    白盒验证

    本次未新增或运行 UT、race、故障注入和主键冲突用例,也未修改产品代码。

    回归测试

    原 issue 的相邻提交布局复现和已有双 CN 验收继续作为根因与修复证据;规模相关回归继续保留在 TPCH big-data/nightly 层。

    测试证据

    测试结论

    测试通过。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions