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
Hive partition JOIN queries intermittently fail with dispatch timeout (dispatch process not registered within 30s) #25211
External hive partition JOIN queries intermittently fail with dispatch process not registered within 30s, remote CN may have failed. The same two JOIN SQLs fail every time the issue occurs, while other queries in the same test file succeed.
This is a recurring flaky failure — it does not reproduce every run.
Affected SQL
-- Query 1: fact JOIN dimselectd.part_name, count(*) as rowcount
fromexternal_hive_partition_2000_large.fact_hive_2000 f
joinexternal_hive_partition_2000_large.dim_part_2000 d
onf.part_id=d.part_idwhered.part_idin (1, 7, 2000)
group byd.part_nameorder byd.part_name-- Query 2: fact self-JOINselecta.part_id, count(*) as rowcount
fromexternal_hive_partition_2000_large.fact_hive_2000 a
joinexternal_hive_partition_2000_large.fact_hive_2000 b
ona.part_id=b.part_idanda.col_uuid=b.col_uuidwherea.part_idin (1, 7)
group bya.part_idorder bya.part_id
Error
ERROR 20101 (HY000): internal error: dispatch process not registered within 30s, remote CN may have failed
Test repository commit: matrixorigin/mo-nightly-regression@053ab522aefefed886bcff64df146e31d312106f
Git ancestry confirms that the tested MatrixOne commit already contains #25682 (17c9953d7d8e94421082e2e28c8f29ed643f1f3e), so this is not a stale run missing the per-CN colexec.Server isolation fix.
First effective failure
The first six statements in 29_external_hive_partition_agg_join.sql completed. The first statement that stopped making progress was the same fact/dimension JOIN tracked by this issue:
selectd.part_name, count(*) as rowcount
fromexternal_hive_partition_2000_large.fact_hive_2000 f
joinexternal_hive_partition_2000_large.dim_part_2000 d
onf.part_id=d.part_idwhered.part_idin (1, 7, 2000)
group byd.part_nameorder byd.part_name;
It started at 2026-07-16 01:51:12 +08:00 and reached the client-side 1800-second timeout at 02:21:12.
Cascading timeouts
After that timeout, the self-JOIN, a two-branch partition-count UNION ALL, and the final aggregate/order query each also consumed the full 1800-second timeout.
These later three timeouts should not yet be treated as independent MO failures. The regression runner implements the limit with func_timeout(...), then continues with the same PyMySQL cursor/conn without killing the server-side query or reconnecting. The original query may therefore remain active, or the connection may no longer be safe to reuse, causing a cascade.
internal error: dispatch process not registered within 30s, remote CN may have failed
for the same fact/dimension JOIN. The latest runner log only exposes the outer 1800-second timeout, so it proves that the same query path still hangs after #25682, but it does not by itself prove that the internal cause is again receiver registration. CN logs/query profiles are needed to distinguish a remaining dispatch hang from a new partition-pruning or JOIN performance regression.
Suggested next checks:
Re-run only HIVE_AGG_07_JOIN_DIM_TABLE and collect all CN logs and query profile.
Check receiver UUID registration/attachment and remote pipeline conversion records.
Verify whether d.part_id in (1, 7, 2000) is propagated to the fact-side external scan and whether Hive partition pruning is effective.
On client timeout, cancel the server query and recreate the SQL connection before running another statement, so one failure cannot hide subsequent results.
Activity
jiangxinmeng1 commentedon Jul 2, 2026
fixed by #25238
Ariznawlll commentedon Jul 3, 2026
没出现了
Ariznawlll commentedon Jul 6, 2026
现在又报错这个了
job:https://github.com/matrixorigin/mo-nightly-regression/actions/runs/28756800333/job/85273758086
22 remaining items
Ariznawlll commentedon Jul 16, 2026
Latest
mainrecurrence after #25682The Hive partition JOIN path failed again in the latest 1Y big-data regression:
0d8111aef18ed25aa4eb35113f8bea9e6ab66587matrixorigin/mo-nightly-regression@053ab522aefefed886bcff64df146e31d312106fGit ancestry confirms that the tested MatrixOne commit already contains #25682 (
17c9953d7d8e94421082e2e28c8f29ed643f1f3e), so this is not a stale run missing the per-CNcolexec.Serverisolation fix.First effective failure
The first six statements in
29_external_hive_partition_agg_join.sqlcompleted. The first statement that stopped making progress was the same fact/dimension JOIN tracked by this issue:It started at
2026-07-16 01:51:12 +08:00and reached the client-side 1800-second timeout at02:21:12.Cascading timeouts
After that timeout, the self-JOIN, a two-branch partition-count
UNION ALL, and the final aggregate/order query each also consumed the full 1800-second timeout.These later three timeouts should not yet be treated as independent MO failures. The regression runner implements the limit with
func_timeout(...), then continues with the same PyMySQLcursor/connwithout killing the server-side query or reconnecting. The original query may therefore remain active, or the connection may no longer be safe to reuse, causing a cascade.Assessment
The previous occurrence in run 29211194235 / job 86704634878 returned the explicit error:
for the same fact/dimension JOIN. The latest runner log only exposes the outer 1800-second timeout, so it proves that the same query path still hangs after #25682, but it does not by itself prove that the internal cause is again receiver registration. CN logs/query profiles are needed to distinguish a remaining dispatch hang from a new partition-pruning or JOIN performance regression.
Suggested next checks:
HIVE_AGG_07_JOIN_DIM_TABLEand collect all CN logs and query profile.d.part_id in (1, 7, 2000)is propagated to the fact-side external scan and whether Hive partition pruning is effective.Ariznawlll commentedon Jul 17, 2026
由25816跟踪,这个先关闭
fix: retry remote notify before dispatch registration (matrixorigin#2…
fix: make remote dispatch registration race-safe (matrixorigin#25574)
fix: register local dispatches below remote scopes (matrixorigin#25664)
fix: isolate colexec server by CN service (matrixorigin#25682)
fix: retry remote notify before dispatch registration (matrixorigin#2…
fix: make remote dispatch registration race-safe (matrixorigin#25574)
fix: register local dispatches below remote scopes (matrixorigin#25664)
fix: isolate colexec server by CN service (matrixorigin#25682)
fix: retry remote notify before dispatch registration (matrixorigin#2…
fix: make remote dispatch registration race-safe (matrixorigin#25574)
fix: register local dispatches below remote scopes (matrixorigin#25664)
fix: isolate colexec server by CN service (matrixorigin#25682)