Repository navigation
Description
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:
c12b932837b152711a6468e67e2905432af8f7413d2eb263af430d37db6d92ccf47304d16b612feeac7309bc4f7df520cf7432860ca6e968a76caacc2f6fb4f667095b63ef6490f127a5ca829cca4543
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:
- An inter-CN MORPC stream/backend closes (
stream call closed on client/use of closed network connection). - The lockservice active-transaction check fails with
failed to valid txn, errorbackend connection closed. - The checking CN logs
found orphan remote txn, unlock with fence timestamp. - A different CN later tries to commit the same transaction, and TN returns
cannot commit a orphan transaction. - 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
- Use a
main-based commit containing67898b60fef9936f63119080c0206ea1492883ce. - Run
.github/workflows/merge-trigger-tke.yamlin the standard multi-CN TKE environment. - Wait for
TPCC TESTto start. - Inspect the affected namespace logs around the first BenchmarkSQL error:
- search for
stream call closed on client; - search for
failed to valid txnwithbackend connection closed; - search for
found orphan remote txn; - correlate the transaction ID with a later
cannot commit a orphan transactionerror.
- search for
- 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
fix(lockservice): treat active txn check errors as indeterminate (#25781
XuPeng-SH commentedon Jul 16, 2026
fixed
fix(lockservice): treat active txn check errors as indeterminate (mat…
fix(lockservice): treat active txn check errors as indeterminate (mat…
fix(lockservice): treat active txn check errors as indeterminate (mat…