schema_version: 1
id: downstream-sink-transaction-failure
title: Downstream sink transaction failure
status: draft
owner: codex
source: jira
environment:
  profile: stable-dedicated
  cluster_id: '1379661944646414117'
  cluster_type: dedicated
  tidb_version: v8.5.3
time_window:
  incident_at: '2026-07-01T01:09:35Z'
  allowed:
  - id: reported_incident_window
    start: '2026-07-01T01:00:00Z'
    end: '2026-07-01T01:20:00Z'
prompt:
  text: 请分析集群 1379661944646414117 在 2026-07-01T01:00:00Z 到 2026-07-01T01:20:00Z 的 changefeed 失败。TiCDC MySQL sink 多 worker 并发执行 REPLACE，日志返回下游 MySQL Error 1213 deadlock，相关表还有二级唯一索引。请判断冲突发生在哪一侧、为什么 REPLACE 容易触发，以及可行的止损方案。
tags:
- cdc
- downstream
- transaction
case_tier: P1
cost_tier: medium
followup:
  scheduled_max_followups: 0
execution:
  acp_bash_timeout_s: 900
