Repository navigation
Description
Description
In the dev AP regression workload, @q1811_adv_range_frame_wsl continues running beyond the configured 7200-second SQL timeout. The runner does not emit a timeout result or advance to the next case.
Environment
- Workflow branch:
codex/mo-ap-regression-dev-assets - Workflow commit:
138640f241f17d28910c366324ab31893ae9ec56 - Deployment: dev freetier cluster with the OSS-loaded
jinpan_001dataset - MatrixOne build SHA: not emitted by this workflow; needs confirmation during triage
- Date: 2026-09-02
Steps to reproduce
- Dispatch
MO AP Regression (Dev)withtest_phase=all,data_mode=fresh. - Allow the advanced join shard 0 to execute
tools/mo-regression-test/cases/jinpan_001/join_adv/j_batch_041.sql. - Observe
@q1811_adv_range_frame_wsl, which performs a window aggregate overdwd_dcp.dwd_s4_acdocaand a left join todwd_dcp.dwd_bw_ztbpc002_com.
The workflow invokes this case with --sql-timeout 7200.
Actual behavior
- The previous
@q1810_adv_invoice_having_avgcompleted in 71,544.40 ms at2026-09-02 14:25:08 +08:00. @q1811_adv_range_frame_wslthen started at the same time and was still running at2026-09-02 18:11 +08:00, over 3 hours 46 minutes later.- No
cost:line, SQL error, orExecution timeout after 7200sline was emitted for q1811. - The Advanced Join job therefore remains active and blocks the remaining serialized shards.
Expected behavior
The query should either complete, return a MatrixOne error, or be canceled and reported by the regression runner no later than the configured 7200-second SQL timeout. A single SQL statement must not keep the regression shard running past its configured timeout.
Stability and controls
- Reproducer: 1/1 on the current dev workload.
- Control: q1810 in the same connection completed successfully immediately before q1811.
- Scope: this report establishes the timeout/hang symptom on dev only. Reproduction on the latest official
mainhas not yet been performed.
Evidence
- Failing active job: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/33482459227/job/99890422550
- Case source:
tools/mo-regression-test/cases/jinpan_001/join_adv/j_batch_041.sql,@q1811_adv_range_frame_wsl
Code analysis
The regression runner wraps cursor.execute() and cursor.fetchall() with func_timeout(7200, ...) and configures PyMySQL read_timeout/write_timeout to the same value. The observed duration exceeds both values. It is not yet confirmed whether the root cause is a MatrixOne query that does not return/cancel, or a client-side timeout that cannot interrupt this operation.
Regression coverage
After root cause is fixed, add a bounded big-data/AP regression that verifies a long-running query exits at the configured SQL timeout and the runner continues with the next case.
Activity
Ariznawlll commentedon Sep 4, 2026
Additional RANGE-frame evidence from Jinpan AP regression
The original
q1811_adv_range_frame_wslreport is not isolated. In the same dev AP workflow, multiple RANGE-frame Window SQL statements independently consumed the full configured 7200-second limit and were canceled by the runner.Environment
freetier-01, multi-CN, OSS-loadedjinpan_001dataset--sql-timeout 7200Timed-out cases
q1442_adv_range_frame_wslq1524_adv_range_frame_wslq1606_adv_range_frame_wslq1647_adv_range_frame_wslq1729_adv_range_frame_wslq1811_adv_range_frame_wslEach reached the same runner message:
Interpretation
This is a repeatable query-shape performance problem, not merely a timeout-delivery problem for q1811. All listed cases use a RANGE-based window-frame pattern over large Jinpan AP tables. The runner now successfully cancels and advances after 7200 seconds, so the remaining product symptom is that these SQL statements require at least two hours to execute.
Exclusions
OOMKilled, exit 137, Go panic, or fatal error was found in the corresponding event windows.Evidence
tools/mo-regression-test/cases/jinpan_001/join_adv/aptend commentedon Sep 7, 2026
Latest main code-path update (2026-09-07)
Reviewed against
main@bcd5ed833b5400fe95f322e4028adb2bde3de0a4. The original run used the diverged 4.2 dev build4f62825d3; current main has relevant Window improvements, but the exact reported frame is not yet covered by a linear evaluator.Relevant merged changes:
LIMIT 1000and timeout responsiveness.All six reported Jinpan cases use the same frame:
This exact shape does not match #27940: the new bounded RANGE path requires a finite start, while the existing cumulative fast path accepts only ROWS. It therefore still falls back to the generic per-output-row frame refill path. Lazy output may reduce observed work under LIMIT, but it does not close the worst-case algorithmic behavior, especially for large peer groups or full result consumption.
The remaining execution change is a peer-aware cumulative RANGE path: add every peer group to one retained running aggregate, then reuse the same snapshot for every row in that peer group. That reduces aggregate work to O(N) while preserving RANGE CURRENT ROW peer semantics.
This is static code-path evidence, not a latest-main replay. Keep the issue open until the same
jinpan_001query is run on latest main with recordedEXPLAIN ANALYZE, elapsed time, correct results, and bounded cancellation.Ariznawlll commentedon Oct 29, 2026
dev环境现在已经下掉了,现在统一在tke环境上测试这部分内容。这个issue先关闭