-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.severity/moderatetype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
What did you do?
- Ran TiCDC
release-8.5MySQL light integration tests (groupG06), which includessame_upstream_downstream. - CI example: https://prow.tidb.net/jenkins/blue/organizations/jenkins/pingcap%2Fticdc%2Fpull_cdc_mysql_integration_light/detail/pull_cdc_mysql_integration_light/687/pipeline/451/
What did you expect to see?
Creating a changefeed with the same TiDB cluster as both upstream and downstream should be rejected with CDC:ErrSameUpstreamDownstream.
What did you see instead?
The changefeed creation succeeds and the test fails with:
Expected create to fail with ErrSameUpstreamDownstream, got: Create changefeed successfully!
Root cause:
- TiCDC determines downstream identity by querying
mysql.tidbforcluster_id. - TiDB 8.5.x (release-8.5 line) does not write
cluster_idintomysql.tidbbecause bootstrap: addcluster_idto themysql.tidbtable tidb#59511 was not cherry-picked to release-8.5. - As a result, TiCDC cannot detect "same upstream downstream" and the safeguard is skipped.
Versions of the cluster
Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):
CI log shows Release Version v8.5.6 (release-8.5 line); `mysql.tidb` does not contain `cluster_id`.Upstream TiKV version (execute tikv-server --version):
(unknown / CI env)TiCDC version (execute cdc version):
TiCDC release-8.5 (MySQL light IT includes `same_upstream_downstream`)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.severity/moderatetype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.