Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-35540

flink-cdc-pipeline-connector-mysql lost table which database and table with the same name

    XMLWordPrintableJSON

Details

    Description

      Description

      When the parameter of 'tables' in mysql pipeline job contains a table which database and table are with the same name like 'app.app', the job will fail and the error meaasge is like:

      java.lang.IllegalArgumentException: Cannot find any table by the option 'tables' = app.app 

      How to reproduce

      Create database and table all named `app`, then submit a pipeline job like this YAML defined:

      source:
        type: mysql
        hostname: localhost
        port: 3306
        username: root
        password: 123456
        tables: app.app
        server-id: 5400-5404
        server-time-zone: UTC
      sink:
        type: doris
        fenodes: 127.0.0.1:8030
        username: root
        password: ""
        table.create.properties.light_schema_change: true
        table.create.properties.replication_num: 1pipeline:
        name: Sync MySQL Database to Doris
        parallelism: 2 

      Attachments

        Activity

          People

            northlin linqigeng
            northlin linqigeng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: