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

Implement strategy pattern for MariaDB and MySQL differences

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 2.5.0.Beta1
    • 2.5.0.Alpha1
    • mysql-connector
    • None
    • False
    • None
    • False

      In several places, both in the runtime code and more so in the test suite, we have added checks for whether we are in MariaDB more or MySQL mode, and this should be abstracted away utilizing a strategy-like pattern.

      Known differences that we should also consider as part of this effort are the following:

      • The default fetch size for the MariaDB driver (DBZ-7085): they do not allow for Integer.MIN_VALUE.
      • Review the JDBC driver and protocol configuration options for possible clean-up
      • Test suite if MariaDB, else MySQL
      • MysqlConnectorConfig usesMariaDbProtocol method
      • New implementation of the MariaDbProtocolFieldReader as dates cannot be read as Blob with MariaDB.
      • Timezone connection configurations - see MySqlConnectorConfiguration class ctor with "connectionTimeZone" vs "timezone".

              ccranfor@redhat.com Chris Cranford
              ccranfor@redhat.com Chris Cranford
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: