Skip to content

[Bug]: merge-trigger-tke TPCC repeatedly fails after inter-CN MORPC backend closes and transactions are marked orphan #25779

Closed

Description

@aptend

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main and PR merge commits based on main

Commit ID

Latest observed failed commit: 78708913f251e64a7b9b96dc55001312c9559a87

Other affected commits:

  • c12b932837b152711a6468e67e2905432af8f741
  • 3d2eb263af430d37db6d92ccf47304d16b612fee
  • ac7309bc4f7df520cf7432860ca6e968a76caacc
  • 2f6fb4f667095b63ef6490f127a5ca829cca4543

All five commits contain 67898b60fef9936f63119080c0206ea1492883ce from #25651.

Other Environment Information

  • Workflow: merge-trigger-tke.yaml / MO Checkin Regression On TKE
  • Environment: TKE, multi-CN deployment
  • Failing job: TPCC TEST
  • Observation window: 2026-07-14 to 2026-07-15 UTC

Actual Behavior

The five most recent failed workflow runs all failed only in TPCC TEST. BenchmarkSQL reports unexpected transaction errors and exits with code 1:

Run Failure
#7983 Three 20705 cannot commit a orphan transaction errors in NEW_ORDER/PAYMENT
#7978 Two 20705 errors in PAYMENT
#7974 Two 20701 deadlock detected errors followed by one 20705
#7973 Two 20705 errors in PAYMENT/NEW_ORDER
#7968 Two 20705 errors in PAYMENT

The same server-side sequence appears in every affected namespace:

  1. An inter-CN MORPC stream/backend closes (stream call closed on client / use of closed network connection).
  2. The lockservice active-transaction check fails with failed to valid txn, error backend connection closed.
  3. The checking CN logs found orphan remote txn, unlock with fence timestamp.
  4. A different CN later tries to commit the same transaction, and TN returns cannot commit a orphan transaction.
  5. BenchmarkSQL treats the error as unexpected and fails the job.

Example from run #7983, namespace mo-checkin-regression-25712:

2026/07/15 10:35:28.652933 +0000
pod=mo-checkin-regression-tp-cn-fkr9g
msg="failed to valid txn" error="backend connection closed"
txn=9355cbe1fd74299518c26cefd496681a

2026/07/15 10:35:28.653734 +0000
pod=mo-checkin-regression-tp-cn-fkr9g
msg="found orphan remote txn, unlock with fence timestamp"

2026/07/15 10:35:31.645309 +0000
pod=mo-checkin-regression-tp-cn-fbtjn
statement="commit" status="fail"
error="cannot commit a orphan transaction"
txn=9355cbe1fd74299518c26cefd49679c5

There was no corresponding OOM, pod restart, panic, or GitHub Actions timeout. The repeated invalid path 'compression'/'format' messages in the job log are unrelated configuration warnings and are not the terminal failure.

Expected Behavior

A transient or closed MORPC backend during GetActiveTxn validation should be recovered or retried without declaring healthy active transactions orphan. TPCC transactions should commit normally, and the check-in workflow should not fail intermittently with error 20705.

Steps to Reproduce

  1. Use a main-based commit containing 67898b60fef9936f63119080c0206ea1492883ce.
  2. Run .github/workflows/merge-trigger-tke.yaml in the standard multi-CN TKE environment.
  3. Wait for TPCC TEST to start.
  4. Inspect the affected namespace logs around the first BenchmarkSQL error:
    • search for stream call closed on client;
    • search for failed to valid txn with backend connection closed;
    • search for found orphan remote txn;
    • correlate the transaction ID with a later cannot commit a orphan transaction error.
  5. The issue has reproduced in five consecutive failed workflow runs across unrelated PR branches.

Additional information

The leading regression candidate is #25651 / 67898b60f, because it changed MORPC targeted backend reset/recreation and lockservice active-transaction recovery, and every affected commit descends from it. This is currently a strong correlation based on the failure sequence and commit ancestry; a good/bad commit rerun or revert test is still needed to prove causality.

Related performance regression after the same change: #25770.

Activity

  1. added
    kind/bug
    on Jul 15, 2026
  2. added a commit that references this issue on Jul 15, 2026
    0d8111a
  3. XuPeng-SH commented on Jul 16, 2026

    @XuPeng-SH
    Contributor

    fixed

  4. added 3 commits that reference this issue on Sep 17, 2026
    d9d8925
    afdb201
    766c9e3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions