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

Abierto
#33,282 2 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@jiangxinmeng1 ya está trabajando en esto.

Desde el 26/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.
Lenguaje dominante
Go
Estrellas
1.9k
Forks
312
Merge medio
21 h 57 min
PR fusionados (30 d)
730

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de matrixorigin/matrixone

Todos los issues de matrixorigin/matrixone

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.