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

MySQL connector should filter additional DML binlog entries for RDS by default

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.2.1.Final
    • 1.1.2.Final
    • mysql-connector
    • None

    Description

      RDS logs some extra DML binlog events even when the binlog is properly configured with row format. This was the purpose of the internal.database.history.ddl.filter property added in previous releases (see DBZ-469), but some users will find they need to set this with additional regular expressions since the current default does not cover all of the DDL expressions that RDS can write to the binlog.

      The current default is:

      DROP TEMPORARY TABLE IF EXISTS .+ /\\* generated by server \\*/
      INSERT INTO mysql.rds_heartbeat2\\(.*\\) values \\(.*\\) ON DUPLICATE KEY UPDATE value = .*
      DELETE FROM mysql.rds_sysinfo.*
      INSERT INTO mysql.rds_sysinfo\\(.*\\) values \\(.*\\)
      DELETE FROM mysql.rds_monitor.*
      FLUSH RELAY LOGS.*
      flush relay logs.*
      SAVEPOINT .*

      The following regex should be added to this default to capture additional `INSERT` statements:

      INSERT INTO mysql.rds_monitor\(.*\) values \(.*\) ON DUPLICATE KEY UPDATE value = .*
      INSERT INTO mysql.rds_monitor\(.*\) values \(.*\)

      so that the complete default is:

      DROP TEMPORARY TABLE IF EXISTS .+ /\* generated by server \*/
      INSERT INTO mysql.rds_heartbeat2\(.*\) values \(.*\) ON DUPLICATE KEY UPDATE value = .*
      DELETE FROM mysql.rds_sysinfo.*
      INSERT INTO mysql.rds_sysinfo\(.*\) values \(.*\)
      DELETE FROM mysql.rds_monitor.*
      INSERT INTO mysql.rds_monitor\(.*\) values \(.*\) ON DUPLICATE KEY UPDATE value = .*
      INSERT INTO mysql.rds_monitor\(.*\) values \(.*\)
      FLUSH RELAY LOGS.*
      flush relay logs.*
      SAVEPOINT .*

       

       

      Attachments

        Issue Links

          Activity

            People

              rhauch Randall Hauch (Inactive)
              rhauch Randall Hauch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: