Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-1173

MySql connector fails on zero datetimes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 0.9.2.Final
    • mysql-connector
    • None
      1. Start up a new connector with an empty dbhistory topic
      2. Synchronize a table with a not-nullable timestamp field with some 0000-00-00 00:00:00 values
      3. Snapshot will fail

    Description

      When taking an initial snapshot of a table with a not-nullable timestamp column with some zero values, snapshotting fails with the following errors:

      [2019-03-06 02:01:15] ERROR Failed due to error: Aborting snapshot due to error when last running 'SELECT * FROM `database`.`table`': Zero date value prohibited (io.debezium.connector.mysql.SnapshotReader)
      [2019-03-06 02:01:16] ERROR WorkerSourceTask{id=prd2234-nonprod3-us-east-1-bootstrap-v0-0} Task threw an uncaught and unrecoverable exception (org.apache.kafka.connect.runtime.WorkerTask)
      [2019-03-06 02:01:16] ERROR WorkerSourceTask{id=prd2234-nonprod3-us-east-1-bootstrap-v0-0} Task is being killed and will not recover until manually restarted (org.apache.kafka.connect.runtime.WorkerTask)
      

      0.8.3.Final with the same database works like a champ. May be a regression of DBZ-114.

      Attachments

        Activity

          People

            jpechane Jiri Pechanec
            cp253 Corey Porter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: