Skip to content

[Bug] TPCC 1000W/1000 terminals fails with CN backend lockservice RPC timeout under high memory pressure #24893

Closed

Description

@Ariznawlll

Issue

In the mo-nightly-regression branch nightly run, the TPCC 1000 warehouses / 1000 terminals benchmark failed while the smaller TPCC cases had already passed.

Failed job:
https://github.com/matrixorigin/mo-nightly-regression/actions/runs/27149474770/job/80162781342

Namespace:
mo-branch-commit-7a8e7cd84-20260608

Failure point

The failure happened in step:

Start TPCC 1000 Warehouses 1000 terminals Test

Time window:

  • UTC: 2026-06-08 18:42:51 - 2026-06-08 18:48:42
  • CST: 2026-06-09 02:42:51 - 2026-06-09 02:48:42

The data load steps and smaller TPCC benchmark steps passed before this:

  • TPCC 10W / 10 terminals
  • TPCC 10W / 100 terminals
  • TPCC 100W / 100 terminals
  • TPCC 100W / 1000 terminals

Error from Actions log

Around 2026-06-08 18:44:18 UTC, BenchmarkSQL terminals started reporting many fatal errors like:

ErrorCode : 20505
ErrorMessage : cannot connect to backend:
writeto tcp4 10.143.26.142:62466->10.143.26.143:6003:
read tcp4 10.143.26.142:62466->10.143.26.143:6003: i/o timeout

The errors appeared in different TPCC transaction types, including TT_PAYMENT, TT_NEW_ORDER, and DELIVERY_BG, and eventually the job exited with code 1.

Related MO logs

Loki logs in the same time window show repeated lockservice remote lock failures against the same backend address:

cn-service.lockservice failed to lock on remote
remote: 10.143.26.143:6003
error: writeto tcp4 10.143.26.142:62466->10.143.26.143:6003:
read tcp4 10.143.26.142:62466->10.143.26.143:6003: i/o timeout

There were also repeated messages such as:

internal error: dedup load did not complete

Initial analysis

This does not look like a TPCC data-load issue. The load stage and previous smaller TPCC cases passed. The direct failure reason is that, under the 1000W / 1000 terminals workload, one CN could not communicate with another CN backend on 10.143.26.143:6003, causing remote lock operations to timeout and BenchmarkSQL terminals to fail.

Prometheus/Grafana did not show a pod restart or OOMKilled event during this TPCC failure window. However, memory on the target CN was very close to its limit:

  • target CN: nightly-regression-dis-tp-cn-phqxp
  • target IP: 10.143.26.143
  • memory around failure: about 54.47Gi / 55Gi

So the current suspicion is severe CN memory pressure / backend unresponsiveness leading to lockservice RPC timeout, rather than a confirmed Kubernetes OOM kill at that time.

Note: a later IVF Vector Index failure in the same run did show an OOMKilled event around 2026-06-08 23:49 UTC, but that happened about 5 hours later and should not be conflated with this TPCC failure.

Activity

  1. Ariznawlll commented on Jun 9, 2026

    @Ariznawlll
    CollaboratorAuthor

    Analysis summary:

    This TPCC failure is different from the later IVF OOM in the same run. The TPCC 1000W / 1000 terminals step failed around 2026-06-08 18:44:18 UTC because BenchmarkSQL could not connect to the CN backend 10.143.26.143:6003 from 10.143.26.142 and hit repeated i/o timeout errors.

    The corresponding MO logs show repeated cn-service.lockservice failed to lock on remote errors against 10.143.26.143:6003. Prometheus did not show pod restart or OOMKilled during this TPCC time window, but the target CN memory was close to the limit, around 54.47Gi / 55Gi. So the likely direction is CN backend/lockservice unresponsiveness under high memory pressure, not a confirmed K8s OOM kill at the TPCC failure time.

  2. changed the title [-]TPCC 1000W/1000 terminals fails with CN backend lockservice RPC timeout under high memory pressure[/-] [+][Bug] TPCC 1000W/1000 terminals fails with CN backend lockservice RPC timeout under high memory pressure[/+] on Jun 9, 2026
  3. added
    kind/bug
    on Jun 9, 2026
  4. added theissue type on Jun 9, 2026
  5. added this to the MO-202606 milestone on Jun 9, 2026
  6. Ariznawlll commented on Jun 9, 2026

    @Ariznawlll
    CollaboratorAuthor

    I checked the GitHub Actions log and the corresponding service logs for this failure. This does not look like a TPCC script-only false positive; the benchmark errors line up with MO server-side logs.

    Run: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/27192330130/job/80279607917
    Commit under test: 7a8e7cd847f2f5c7819ad4a63b2f1f5f7ad07832
    Case: tpcc1000.1000, 1000 warehouses / 1000 terminals / 5 min

    The benchmark itself completed and the consistency check passed, but the step failed because benchmarksql-error.log contained 6 unexpected errors:

    • 20705 cannot commit a orphan transaction
    • 20505 cannot connect to backend ... 10.143.28.222:46786->10.143.28.223:6003 ... i/o timeout
    • 20701 deadlock detected

    Server-side logs around the same window show matching evidence:

    • DN reported lockservice/lock_table_allocator.go:195 error: cannot commit a orphan transaction at 2026-06-09 08:36:18 and 08:36:45.
    • CN nightly-regression-dis-tp-cn-6pzh9 reported frontend commit failures with error: cannot commit a orphan transaction, matching the 20705 benchmark errors.
    • CN nightly-regression-dis-tp-cn-6v7hz reported many lockservice remote lock/unlock failures against 10.143.28.223:6003, for example:
      writeto tcp4 10.143.28.222:46786->10.143.28.223:6003: read ... i/o timeout.
    • CN nightly-regression-dis-tp-cn-gtvk6 reported dead lock found, and CN 6v7hz later returned deadlock detected to the frontend, matching the 20701 benchmark error.
    • The same window also had many objectio/cache.go:354 error: internal error: dedup load did not complete logs across CNs.

    So my current read is that this is more likely a MO server-side high-concurrency stability issue around lockservice / remote CN communication under TPCC 1000w/1000t load, rather than a test harness issue.

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/bug

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions