Skip to content

when mysql sink's domain reflects to another IP, ticdc changefeed can't auto-resume #1324

@lichunzhu

Description

@lichunzhu

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a recipe for reproducing the error.
    Use TiCDC to replicate data to a MySQL sink. The downstream sink URI is a domain that reflects a MySQL database and its follower database. When the domain the reflection from the follower database to the leader database (the follower database meets some errors), TiCDC's changefeed can't auto-resume unless we resume this changefeed manually.

  2. What did you expect to see?
    TiCDC won't pause or can auto-resume when a switch happens.

  3. What did you see instead?
    We need to resume changefeed manually.
    TiCDC log reported

[2021/01/18 18:34:51.546 +08:00] [WARN] [mysql.go:722] ["execute DMLs with error, retry later"] [error="[CDC:ErrMySQLTxnError]Error 3100: Error on observer while running replication hook 'before_commit'."]
[2021/01/18 18:34:52.195 +08:00] [WARN] [mysql.go:722] ["execute DMLs with error, retry later"] [error="[CDC:ErrMySQLTxnError]Error 1290: The MySQL server is running with the --read-only option so it cannot execute this statement"]
  1. Versions of the cluster

    • Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):

      (paste TiDB cluster version here)
      
    • TiCDC version (execute cdc version):

      (paste TiCDC version here)
      

      v4.0.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ticdcIssues or PRs related to TiCDC.component/sinkSink component.subject/new-featureDenotes an issue or pull request adding a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions