[Bug]: TKE CDC TPCC initial snapshot repeatedly fails to converge within 15 minutes

オープン
#33,282 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@jiangxinmeng1 がすでに取り組んでいます。

2026年11月26日 から。

評価

この issue はまだ評価されていません。

説明

kind/bug severity/s-1

Summary

TKE main Family's MO-to-MO CDC TPCC initial snapshot did not converge within the existing 900-second test deadline on three recent nightly runs. Source and sink row counts were still different at the final poll. Server logs for the latest run show initial copy progressing and repeated slow sink INSERT statements; they do not establish that CDC stopped, lost data, or deadlocked. The reason for the reduced throughput and the product-versus-shared-resource/harness boundary remain under investigation.

Environment / latest occurrence

  • Run: 45641288353, MO CDC job 139516059551, attempt 1, TKE main weekly-shadow-1x2, 1 TP CN + 2 AP CN, shared TN.
  • Actual MatrixOne image receipt: afe647f60fbf1393a51d94ce84a1abb676aaaf99, registry digest sha256:3e508ae14f435bcd3938d1956b6c7578bd7702aa67db9ca4b270046b6ae555d8. Workflow revision bd0f5e0a694c85acfb060a692598a6ec6ea24d35 is distinct from the product revision.
  • Source tpcc_10, sink tke_family_tpcc_sink, 10 warehouses. The initial convergence oracle polls source/sink counts and aggregates, requiring consecutive matches with a 900-second budget; the later transactional TPCC client phase is not reached on initial convergence failure.
  • TP pod nightly-regression-dis-tp-cn-pvsfn in namespace mo-main-family-45641288353-1; TP CN request/limit 14 CPUs, memory limit 55 GiB. CDC task 01a21490-e7eb-7d31-8d74-2b2dd1244f4a was classified tp-only by the run's runner evidence.

Recent repeated failures

Dates are China Standard Time (UTC+8). Values are bmsql_order_line counts in the final convergence poll, not final post-cleanup counts.

Date CDC job Source rows Sink rows at last poll Result
2026-11-24 45201321401 / 137966547627 3,561,247 2,448,675 initial convergence deadline
2026-11-25 45421481573 / 138812045791 3,733,947 3,477,975 initial convergence deadline
2026-11-26 45641288353 / 139516059551 3,683,269 2,580,289 initial convergence deadline

In three preceding checked runs the same initial convergence phase completed: Nov 21, Nov 22, and Nov 23. Their first-to-last convergence polling intervals were approximately 7–10.5 minutes; product revisions, row counts, and concurrency are not fully controlled, so these are historical controls, not a proven first-bad commit or isolated performance comparison.

Latest timeline and service-side evidence

Times below are UTC on 2026-11-25 (add eight hours for CST on Nov 26):

  • 21:16:52: first convergence sample, sink initially unavailable; source bmsql_order_line count 3,683,269.
  • 21:27:37: sink count has advanced to 2,194,884.
  • 21:31:18: TP CN cdc.progress_tracker.progress for this task and table reports processing, 2,584,644 initial-sync rows and 358 batches; the progress tracker is not the same measurement as the SQL sink count. current-watermark=0-0 is observed during the unfinished initial snapshot and is not by itself proof of a stall.
  • 21:31:48: final convergence poll reports sink 2,580,289 versus source 3,683,269, consecutive=0. Subsequent cleanup removes the task; this run does not show whether the snapshot would have completed with more time.
  • Same TP CN, Loki window 21:27–21:32 UTC: cdc.mysql_sinker2.exec_insert_sql_slow records repeated target bmsql_order_line INSERT durations around 1–1.5 seconds early in the window, followed by multiple approximately 8–11 second statements (e.g. 21:30:36 = 10.945 s; 21:31:44 = 10.819 s). These logs localize the slow observed boundary, not the internal reason for each INSERT's latency.
  • During this phase, TP Tail IVF SIFT L2 ran 21:25:57–21:33:24 UTC in the same Family environment. Prometheus 1-minute rate samples for the TP CN were ~13.93 CPU cores at 21:30–21:32, close to its 14-core limit. Coexistence and high utilization are plausible resource contention, but do not prove causal attribution to IVF or rule out a CDC/product efficiency issue.
  • Bounded TP-CN Loki searches for this incident window returned no matching CDC process_failed/permanent-error, memory-admission, or deadlock signature. This is limited to the queried pod, filters and five-minute window; it is not proof that no other resource or service error occurred.

Expected behavior and investigation

On the declared nightly workload, initial synchronization should make bounded progress and reach a verified source/sink match, or expose actionable progress/slow-stage diagnostics if the budget is insufficient. Please compare the same MO SHA, dataset, endpoint/routing and resources under (1) CDC without IVF overlap and (2) the declared concurrent topology; collect per-batch sink INSERT latency, CPU throttling, SQL execution/transaction wait, TN/storage pressure, task progress and verified final results. Record actual completion time without assuming a larger timeout fixes the root cause. Check cancellation/owner-scoped cleanup and ensure the task and any server-side work terminate safely.

No isolated reproduction or causal commit bisection has been run. The symptom may represent product throughput, resource interference, or a mismatch between the workload and the 900-second test contract. Do not describe the incomplete initial snapshot at timeout as established permanent data loss.

Related issues

  • #27863 (closed) concerned waiting_for_initial_snapshot_batch_slot; latest evidence here shows processing and advancing rows, not that specific wait state.
  • #31887 (open) concerns first sink memory-admission errors permanently failing CDC. No matching task error was found in the bounded latest-window probe, so a common cause is not established.
主要言語
Go
スター
1.9k
フォーク
312
平均マージ
21時間 57分
マージ済み PR(30日)
730

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

matrixorigin/matrixone のほかの issue

matrixorigin/matrixone の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。