Skip to content

[Bug] objectio/cache: 'dedup load did not complete' causes dispatch timeout on external hive partition JOIN queries #25152

Closed

Description

@Ariznawlll

Summary

External hive partition JOIN queries fail with dispatch process not registered within 30s, remote CN may have failed. Root cause is objectio/cache.go:354 reporting dedup load did not complete on all 3 CNs during heavy concurrent S3 reads from external hive partition tables.

Environment

Not OOM

  • No OOMKilled events in kube-state-metrics
  • No pod restarts
  • CN peak memory: tp-cn-kgz9c 32.17 GiB, tp-cn-4qbqk 26.18 GiB, tp-cn-9hjn8 25.32 GiB (limit 55 GiB)

Failed Queries

Both are JOINs on external_hive_partition_2000_large (external hive partition table with 2000 partitions, 50000 rows/partition):

-- Query 1: fact JOIN dim (failed at 02:18:49 UTC)
select d.part_name, count(*) as rowcount
from external_hive_partition_2000_large.fact_hive_2000 f
join external_hive_partition_2000_large.dim_part_2000 d
on f.part_id = d.part_id
where d.part_id in (1, 7, 2000)
group by d.part_name order by d.part_name

-- Query 2: fact self-JOIN (failed at 02:20:20 UTC)
select a.part_id, count(*) as rowcount
from external_hive_partition_2000_large.fact_hive_2000 a
join external_hive_partition_2000_large.fact_hive_2000 b
on a.part_id = b.part_id and a.col_uuid = b.col_uuid
where a.part_id in (1, 7)
group by a.part_id order by a.part_id

Loki Evidence

dedup load did not complete on all 3 CNs

tp-cn-4qbqk  02:20:55  objectio/cache.go:354  error: internal error: dedup load did not complete
tp-cn-4qbqk  02:20:36  objectio/cache.go:354  error: internal error: dedup load did not complete
tp-cn-4qbqk  02:20:20  objectio/cache.go:354  error: internal error: dedup load did not complete
tp-cn-4qbqk  02:20:00  objectio/cache.go:354  error: internal error: dedup load did not complete
tp-cn-9hjn8  02:20:38  objectio/cache.go:354  error: internal error: dedup load did not complete
tp-cn-9hjn8  02:20:08  objectio/cache.go:354  error: internal error: dedup load did not complete
tp-cn-9hjn8  02:20:00  objectio/cache.go:354  error: internal error: dedup load did not complete
tp-cn-kgz9c  02:21:55  objectio/cache.go:354  error: internal error: dedup load did not complete (×6)

dispatch timeout on all 3 CNs

tp-cn-4qbqk  02:20:20  compile/scope.go:810   send notify message failed : dispatch process not registered within 30s
tp-cn-4qbqk  02:19:49  compile/scope.go:810   send notify message failed : dispatch process not registered within 30s
tp-cn-9hjn8  02:20:20  compile/remoterunServer.go:545  dispatch process not registered within 30s
tp-cn-kgz9c  02:19:49  compile/remoterunServer.go:545  dispatch process not registered within 30s

GC pressure

tp-cn-kgz9c  ~02:19  GC forced

Timeline

Time (UTC) Event
02:15:46 EXISTS subquery starts
02:17:18 EXISTS subquery finishes (91s)
02:17:18 JOIN query 1 starts
02:18:00 dedup load did not complete starts on all CNs
02:18:49 Query 1 fails: dispatch timeout
02:18:49 Self-JOIN query 2 starts
~02:19:00 tp-cn-kgz9c: GC forced
02:20:20 Query 2 fails: dispatch timeout

Causal Chain

  1. JOIN queries on external hive partition tables trigger heavy concurrent S3 reads across all 3 CNs
  2. Object cache dedup load fails to complete (objectio/cache.go:354) on all CNs
  3. CNs become slow to respond to inter-CN RPC dispatch requests
  4. tp-cn-kgz9c hits GC forced, further delaying response
  5. Dispatch registration exceeds 30s timeout → queries fail

Expected Behavior

Object cache dedup load should complete successfully under concurrent S3 read pressure, or degrade gracefully (retry/backoff) rather than causing cascading dispatch timeouts.

Steps to Reproduce

  1. Deploy MO with 3 CNs on TKE (55 GiB memory limit each)
  2. Create external hive partition table with 2000 partitions, ~50K rows/partition
  3. Run JOIN queries that scan multiple partitions across CNs
  4. Observe dedup load did not complete errors followed by dispatch timeouts

Activity

  1. changed the title [-]objectio/cache: 'dedup load did not complete' causes dispatch timeout on external hive partition JOIN queries[/-] [+][Bug] objectio/cache: 'dedup load did not complete' causes dispatch timeout on external hive partition JOIN queries[/+] on Jun 25, 2026
  2. added
    kind/bug
    severity/s0
    on Jun 25, 2026
  3. added theissue type on Jun 25, 2026
  4. added this to the MO-202606 milestone on Jun 25, 2026
  5. Ariznawlll commented on Jun 25, 2026

    @Ariznawlll
    CollaboratorAuthor

    CN Logs (02:17 - 02:22 UTC)

    Namespace: mo-big-data-commit-a0de030-suite-1y
    Query window: Loki, 2026-06-25 02:17:00 - 02:22:00 UTC, limit=200

    1. dedup load did not complete (objectio/cache.go:354) — all 3 CNs

    tp-cn-4qbqk (36 lines)

    02:17:20.600  ERROR  dedup load did not complete
    02:17:20.666  ERROR  dedup load did not complete
    02:17:40.520  ERROR  dedup load did not complete
    02:17:40.599  ERROR  dedup load did not complete
    02:17:50.597  ERROR  dedup load did not complete
    02:17:50.637  ERROR  dedup load did not complete
    02:18:15.600  ERROR  dedup load did not complete
    02:18:15.670  ERROR  dedup load did not complete
    02:18:30.515  ERROR  dedup load did not complete
    02:18:30.599  ERROR  dedup load did not complete
    02:18:50.596  ERROR  dedup load did not complete
    02:18:50.631  ERROR  dedup load did not complete
    02:18:57.719  ERROR  dedup load did not complete
    02:19:10.601  ERROR  dedup load did not complete
    02:19:10.678  ERROR  dedup load did not complete
    02:19:30.533  ERROR  dedup load did not complete
    02:19:30.599  ERROR  dedup load did not complete
    02:19:40.597  ERROR  dedup load did not complete
    02:19:40.642  ERROR  dedup load did not complete
    02:19:57.716  ERROR  dedup load did not complete
    02:19:57.793  ERROR  dedup load did not complete
    02:19:57.812  ERROR  dedup load did not complete
    02:20:00.602  ERROR  dedup load did not complete
    02:20:00.690  ERROR  dedup load did not complete
    02:20:20.513  ERROR  dedup load did not complete
    02:20:20.600  ERROR  dedup load did not complete
    02:20:36.215  ERROR  dedup load did not complete
    02:20:36.285  ERROR  dedup load did not complete
    02:20:55.601  ERROR  dedup load did not complete
    02:20:55.672  ERROR  dedup load did not complete
    02:21:10.505  ERROR  dedup load did not complete
    02:21:10.600  ERROR  dedup load did not complete
    02:21:26.215  ERROR  dedup load did not complete
    02:21:26.341  ERROR  dedup load did not complete
    02:21:50.602  ERROR  dedup load did not complete
    02:21:50.666  ERROR  dedup load did not complete
    

    tp-cn-9hjn8 (16 lines)

    02:17:53.363  ERROR  dedup load did not complete
    02:17:53.436  ERROR  dedup load did not complete
    02:18:53.363  ERROR  dedup load did not complete
    02:18:53.447  ERROR  dedup load did not complete
    02:19:41.364  ERROR  dedup load did not complete
    02:19:41.449  ERROR  dedup load did not complete
    02:20:00.010  ERROR  dedup load did not complete
    02:20:08.353  ERROR  dedup load did not complete
    02:20:08.438  ERROR  dedup load did not complete
    02:20:38.360  ERROR  dedup load did not complete
    02:20:38.525  ERROR  dedup load did not complete
    02:21:26.362  ERROR  dedup load did not complete
    02:21:26.448  ERROR  dedup load did not complete
    

    tp-cn-kgz9c (10 lines)

    02:17:08.409  ERROR  dedup load did not complete
    02:21:50.985  ERROR  dedup load did not complete
    02:21:51.047  ERROR  dedup load did not complete
    02:21:55.534  ERROR  dedup load did not complete
    02:21:55.535  ERROR  dedup load did not complete
    02:21:55.535  ERROR  dedup load did not complete
    02:21:55.535  ERROR  dedup load did not complete
    02:21:55.535  ERROR  dedup load did not complete
    02:21:55.535  ERROR  dedup load did not complete
    

    2. dispatch process not registered within 30s — all 3 CNs

    tp-cn-kgz9c

    02:17:48.387  ERROR  compile/remoterunServer.go:545  dispatch process not registered within 30s
                  trace_id=37fc7fb4-dfe6-a634-0ac3-3f9b6c981130
    02:17:48.399  ERROR  frontend/txn.go:63  dispatch process not registered within 30s
                  session=019efc8f-d0e9-778a, stmt=select d.part_name...dim_part_2000 d on f.part_id...
    02:17:48.399  ERROR  frontend/util.go:469  query trace status=fail
    
    02:18:18.727  ERROR  compile/remoterunServer.go:545  dispatch process not registered within 30s
                  trace_id=37fc7fb4-dfe6-a634-0ac3-3f9b6c981130
    02:18:18.739  ERROR  frontend/txn.go:63  dispatch process not registered within 30s
                  stmt=select d.part_name...dim_part_2000...
    
    02:18:49.022  ERROR  compile/remoterunServer.go:545  dispatch process not registered within 30s
                  trace_id=94c39d0f-c103-c447-4419-27cc5bbca23b
    02:18:49.034  ERROR  frontend/txn.go:63  dispatch process not registered within 30s
                  session=019efc92-2cf8-7611, connectionId 8654|10.143.38.191:27826
                  stmt=select d.part_name, count(*) as rowcount from ...fact_hive_2000 f join ...dim_part_2000 d...
    
    02:19:19.542  ERROR  compile/remoterunServer.go:545  dispatch process not registered within 30s
                  trace_id=37fc7fb4-dfe6-a634-0ac3-3f9b6c981130
    02:19:19.554  ERROR  frontend/txn.go:63  stmt=select a.part_id...fact_hive_2000 a join ...fact_hive_2000 b...
    
    02:19:49.932  ERROR  compile/remoterunServer.go:545  dispatch process not registered within 30s
    02:19:49.945  ERROR  frontend/txn.go:63  stmt=select a.part_id...fact_hive_2000 self-JOIN...
    

    tp-cn-4qbqk

    02:17:48.393  INFO   compile/scope.go:810  send notify message failed : dispatch process not registered within 30s
                  session=019efc8f-d0e9, trace_id=37fc7fb4
    02:18:18.733  INFO   compile/scope.go:810  send notify message failed : dispatch process not registered within 30s
    02:18:49.028  INFO   compile/scope.go:810  send notify message failed : dispatch process not registered within 30s
                  session=019efc92-2cf8, trace_id=94c39d0f
    02:19:19.548  INFO   compile/scope.go:810  send notify message failed : dispatch process not registered within 30s
    02:19:49.938  INFO   compile/scope.go:810  send notify message failed : dispatch process not registered within 30s
                  session=019efc8f-d0e9
    02:20:20.418  INFO   compile/scope.go:810  send notify message failed : dispatch process not registered within 30s
                  session=019efc93-913d, trace_id=13d66001
    

    tp-cn-9hjn8

    02:20:20.413  ERROR  compile/remoterunServer.go:545  dispatch process not registered within 30s
                  trace_id=13d66001-3b24-f4d3-bb32-7a6b9af9e72e
    02:20:20.425  ERROR  frontend/txn.go:63  dispatch process not registered within 30s
                  connectionId 8771|10.143.38.190:16230
    02:20:20.425  ERROR  frontend/util.go:469  query trace status=fail
                  stmt=select a.part_id, count(*) as rowcount from ...fact_hive_2000 a join ...fact_hive_2000 b on a.part_id = b.part_id and a.col_uuid = b.col_uuid where a.part_id in (1, 7)
    

    3. GC forced — tp-cn-kgz9c

    ~02:17  GC forced
    ~02:17  GC forced
    

    4. cannot get salt / i/o timeout — all 3 CNs

    tp-cn-kgz9c

    02:21:20.300  ERROR  cannot get salt  error="read tcp 10.143.38.195:6001->10.143.38.187:41326: i/o timeout"
    02:21:22.618  ERROR  cannot get salt  error="read tcp 10.143.38.195:6001->10.143.38.194:48174: i/o timeout"
    02:21:29.976  ERROR  cannot get salt  error="read tcp 10.143.38.195:6001->10.143.38.188:42664: i/o timeout"
    02:21:36.004  ERROR  cannot get salt  error="read tcp 10.143.38.195:6001->10.143.38.192:14926: i/o timeout"
    02:21:37.824  ERROR  cannot get salt  error="read tcp 10.143.38.195:6001->10.143.38.193:16622: i/o timeout"
    02:21:44.977  ERROR  cannot get salt  error="read tcp 10.143.38.195:6001->10.143.38.188:42822: i/o timeout"
    02:21:50.971  ERROR  cannot get salt  error="read tcp 10.143.38.195:6001->10.143.38.195:59976: i/o timeout"
    02:21:53.267  ERROR  cannot get salt  error="read tcp 10.143.38.195:6001->10.143.38.191:28960: i/o timeout"
    02:21:59.977  ERROR  cannot get salt  error="read tcp 10.143.38.195:6001->10.143.38.188:42962: i/o timeout"
    

    tp-cn-9hjn8

    02:20:44.975  ERROR  cannot get salt  error="read tcp 10.143.38.194:6001->10.143.38.188:54812: i/o timeout"
    02:20:53.725  ERROR  cannot get salt  error="read tcp 10.143.38.194:6001->10.143.38.190:16584: i/o timeout"
    02:20:59.972  ERROR  cannot get salt  error="read tcp 10.143.38.194:6001->10.143.38.188:54948: i/o timeout"
    02:21:14.976  ERROR  cannot get salt  error="read tcp 10.143.38.194:6001->10.143.38.188:55084: i/o timeout"
    02:21:29.971  ERROR  cannot get salt  error="read tcp 10.143.38.194:6001->10.143.38.188:55216: i/o timeout"
    02:21:53.725  ERROR  cannot get salt  error="read tcp 10.143.38.194:6001->10.143.38.190:16914: i/o timeout"
    

    tp-cn-4qbqk

    02:20:53.417  ERROR  cannot get salt  error="read tcp 10.143.38.193:6001->10.143.38.189:33288: i/o timeout"
    02:20:59.975  ERROR  cannot get salt  error="read tcp 10.143.38.193:6001->10.143.38.188:37228: i/o timeout"
    02:21:44.982  ERROR  cannot get salt  error="read tcp 10.143.38.193:6001->10.143.38.188:37656: i/o timeout"
    02:21:53.418  ERROR  cannot get salt  error="read tcp 10.143.38.193:6001->10.143.38.189:33842: i/o timeout"
    02:21:59.972  ERROR  cannot get salt  error="read tcp 10.143.38.193:6001->10.143.38.188:37792: i/o timeout"
    

    5. CN-to-CN close connection failed (use of closed network connection)

    [tp-cn-4qbqk] 02:20:56.998  close conneciton failed  error="close tcp4 10.143.38.193:51830->10.143.38.194:6002: use of closed network connection"
    [tp-cn-9hjn8] 02:20:53.822  close conneciton failed  error="close tcp4 10.143.38.194:19182->10.143.38.195:6002: use of closed network connection"
    [tp-cn-9hjn8] 02:20:53.827  close conneciton failed  error="close tcp4 10.143.38.194:19184->10.143.38.195:6002: use of closed network connection"
    [tp-cn-kgz9c] 02:21:17.432  close conneciton failed  error="close tcp4 10.143.38.195:11838->10.143.38.194:6002: use of closed network connection"
    [tp-cn-kgz9c] 02:21:17.437  close conneciton failed  error="close tcp4 10.143.38.195:11840->10.143.38.194:6002: use of closed network connection"
    [tp-cn-kgz9c] 02:21:17.442  close conneciton failed  error="close tcp4 10.143.38.195:14112->10.143.38.193:6002: use of closed network connection"
    [tp-cn-kgz9c] 02:21:17.448  close conneciton failed  error="close tcp4 10.143.38.195:14114->10.143.38.193:6002: use of closed network connection"
    [tp-cn-kgz9c] 02:21:53.113  close conneciton failed  error="close tcp4 10.143.38.195:12358->10.143.38.194:6002: use of closed network connection"
    [tp-cn-kgz9c] 02:21:53.520  close conneciton failed  error="close tcp4 10.143.38.195:14626->10.143.38.193:6002: use of closed network connection"
    

    6. PutIdleConn / CloseIdleConnections — all 3 CNs

    [tp-cn-kgz9c] 02:20:48 - 02:21:48  every ~5s  PutIdleConn error: CloseIdleConnections was called (14 occurrences)
    [tp-cn-4qbqk] 02:21:44, 02:21:49  PutIdleConn error: CloseIdleConnections was called
    [tp-cn-9hjn8] 02:21:43, 02:21:48  PutIdleConn error: CloseIdleConnections was called
    

    Summary

    • dedup load did not complete: started at 02:17:08 on tp-cn-kgz9c, spread to all 3 CNs by 02:17:53, continued until 02:21:55
    • dispatch not registered within 30s: first at 02:17:48, repeated every ~30s until 02:20:20
    • GC forced: tp-cn-kgz9c around 02:17
    • cannot get salt / i/o timeout: started ~02:20:44 on all CNs
    • close connection failed: CN-to-CN (port 6002) connections broken from ~02:20:53
  6. Ariznawlll commented on Jun 25, 2026

    @Ariznawlll
    CollaboratorAuthor

    #25129 跟踪

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugseverity/s0

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions