[Bug]: TKE high-concurrency account cleanup repeatedly exhausts 30-minute deadline

Aperta
#33,276 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@iamlinjunhong ci sta già lavorando.

Dal 26/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

kind/bug severity/s-1

Summary

TKE main Family's create_drop_account_high workload passes, but its subsequent run-owned account cleanup repeatedly exhausts its 1,800-second client deadline. This has occurred on eight separately observed scheduled runs between 2026-11-17 and 2026-11-26 (China Standard Time, UTC+8). The exact server-side cause is not established: this report tracks the repeatable operational symptom and the need to distinguish product-side DROP ACCOUNT throughput/waits from the cleanup implementation and its budget.

The cleanup receipt explicitly reports remaining_count: null and mysql batch deadline exhausted; server completion unknown. Accounts without a client acknowledgement must not be counted as confirmed remaining accounts or confirmed data leakage.

Environment and latest occurrence

  • Workflow: MO Main Nightly Regression On TKE (main), Family weekly-shadow-1x2, 1 TP CN + 2 AP CN with shared TN; workload selector create_drop_account_high, followed by run-owned account cleanup. This is the AP full Concurrent job, not MOTR.
  • Latest observed run: 45641288353 / AP full Concurrent job 139608180266.
  • MatrixOne subject: afe647f60fbf1393a51d94ce84a1abb676aaaf99, from the run's immutable image receipt. Workflow revision: bd0f5e0a694c85acfb060a692598a6ec6ea24d35 (not the product commit).
  • Cleanup configuration: eight workers, 1,800-second overall deadline. Before cleanup, 1,168 run-owned accounts were inventoried; at deadline, 665 account drops had been acknowledged. The selector passed but the cleanup failed, so the Concurrent job failed.
  • Latest cleanup deadline was reached at approximately 2026-11-26 10:07 CST (02:07 UTC); the job completed at 10:07:30 CST. The recorded cleanup duration was 1,800.002 seconds. The receipt records remaining_count=null, 16 unconfirmed batches and mysql batch deadline exhausted; server completion unknown.

Repeated occurrences

Dates and job completion times below are CST (UTC+8). Counts are the final cleanup receipt's acknowledged accounts / inventory before cleanup; they do not establish the number left on the server.

Date / job completed (CST) Job Acknowledged / inventoried Client deadline
Nov 17 09:28 43892664281 / 133704375512 1,000 / 1,718 1,800 s
Nov 18 09:02 44110438139 / 134451625434 1,030 / 1,379 1,800 s
Nov 20 08:53 44550895129 / 135956346102 1,029 / 1,683 1,800 s
Nov 21 08:51 44759794462 / 136630989403 1,058 / 1,650 1,800 s
Nov 22 08:50 44916947951 / 137019472577 1,049 / 1,668 1,800 s
Nov 23 09:02 45036292992 / 137396462885 1,010 / 1,614 1,800 s
Nov 25 10:50 45421481573 / 138904632482 728 / 1,177 1,800 s
Nov 26 10:07 45641288353 / 139608180266 665 / 1,168 1,800 s

The corresponding full-Concurrent job was skipped in the Nov 19 and Nov 24 local-date scheduled runs checked; this is eight observed failure dates, not proof of ten consecutive daily failures. History before Nov 17 was not investigated, so Nov 17 is not asserted to be the first-ever occurrence. The counts, workload history and product revisions differ between runs; this table establishes recurrence, not a controlled performance regression or a first-bad commit.

Expected behavior

After the high-concurrency account workload finishes, run-owned accounts should be removed with bounded forward progress and a verifiable postcondition. If cleanup cannot finish within the declared budget, expose enough evidence to distinguish server wait/throughput from client cancellation and report which operations have confirmed or unknown completion. Do not treat a larger timeout alone as a root-cause fix.

Reproduction / follow-up investigation

  1. In an isolated TKE environment with the same topology, run the existing create_drop_account_high case and its owner-scoped cleanup with the recorded worker and timeout settings. Capture exact product/tool/workflow revisions and concurrent peers.
  2. Compare the same owned-account population with a controlled quiet cluster and record per-account DROP start, return, latency, throughput, server completion and final catalog postcondition. Avoid touching accounts owned by other workloads.
  3. Correlate the latest incident's 09:37–10:07 CST window with same-generation CN/TN SQL and transaction logs, lock owners and waits, catalog/commit/WAL activity, resources and workload overlap. Determine whether drops are slow-but-progressing, blocked, aborted, or predominantly limited by cleanup client scheduling.
  4. Test bounded cancellation and reconciliation: client reaping must not be mistaken for server completion, and retries must be owner-scoped and safe after ambiguous results.

No independent isolated reproduction, lock graph, server-side stack or product-versus-harness root cause is claimed from the nightly receipts alone. The above dates prove repeated deadline exhaustion, not a deadlock or permanent orphaned accounts.

Related issues / duplicate assessment

  • #28079 (closed): the same high-concurrency workload previously hit a global View metadata gate during CREATE ACCOUNT; its fix was verified. This incident is the subsequent bulk DROP cleanup and has not been shown to share that lock or mechanism.
  • #30879 and #30454 (closed): account cleanup deadlines in UT fixtures, different workload and budget.
  • #29275 (open): catalog logtail recovery / transaction-admission pause seen during account churn; no evidence yet connects this occurrence to its specific recovery chain.
  • #32120 (open): the same Concurrent job has independently tracked ALTER 20601 errors; its report explicitly treats account cleanup as a separate phenomenon.
Lingua principale
Go
Stelle
1.9k
Fork
312
Merge medio
22h 59m
PR unite (30g)
736

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di matrixorigin/matrixone

Tutte le issue di matrixorigin/matrixone

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.