Skip to content

data inconsistency after injection of cdc network loss  #9344

Closed
@fubinzh

Description

What did you do?

  1. TiDB cluster with 3 cdc
  2. Create mysql sink changefeed
  3. Pause changefeed
  4. Run sysbench oltp_update_non_index prepare
sysbench --db-driver=mysql --mysql-host=upstream-tidb.cdc-testbed-tps-1816047-1-21 --mysql-port=4000 --mysql-user=root --mysql-db=workload --tables=100 --table-size=500000 --create_secondary=off --time=3600 --threads=100 oltp_update_non_index prepare
  1. resume changefeed
  2. run oltp_update_non_index run, and at the same time inject randon cdc node network loss for 10s every 30 minutes, totally 4 chaos injection is done in 2 hours.
sysbench --db-driver=mysql --mysql-host=upstream-tidb.cdc-testbed-tps-1816047-1-21 --mysql-port=4000 --mysql-user=root --mysql-db=workload --tables=100 --table-size=500000 --create_secondary=off --time=3600 --threads=100 oltp_update_non_index run
  1. Send finishmark and Wait finishmark sync to downstream
  2. Do data consistency check b/w upstream and downstream.

What did you expect to see?

Data consistency should pass

What did you see instead?

Data inconsistency seen. One table out of 100 tables in total are inconsistent, only 2 rows are different.

image

Versions of the cluster

[2023/07/04 23:09:33.079 +00:00] [INFO] [version.go:47] ["Welcome to Change Data Capture (CDC)"] [release-version=v7.3.0-alpha] [git-hash=41fda209483e6d0d94cd5e09ce784b692b2a614a] [git-branch=heads/refs/tags/v7.3.0-alpha] [utc-build-time="2023-07-04 11:03:24"] [go-version="go version go1.20.5 linux/amd64"] [failpoint-build=false]

Metadata

Assignees

No one assigned

    Labels

    affects-6.1This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.area/ticdcIssues or PRs related to TiCDC.found/automationBugs found by automation casesseverity/criticaltype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions