Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-650

Connector/C fails to read MariaDB binlog with XA transactions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 3.3.5
    • 3.3.6
    • Replication/Binlog API
    • None
    • Client running on Windows
      MariaDB 10.7

    Description

      Hi, I'm using MariaDB Connector/C 3.3.5 to read binary logs.
      It works perfectly for MySQL 8.0 and MariaDB 10.5 databases.
      For MariaDB 10.6 and above, mariadb_rpl_fetch() crashes if the binlog contains XA transactions.
      Specifically, the function fails when it tries to read event type GTID with this contents:
      'XA START X'54584e31',X'',1 GTID 0-1-21'

      If the function doesn't crash, it returns this error:

      Read next binary log event failed; mariadb_rpl_fetch error 1236 (Failed to replace GTID event with backwards-compatible event: corrupt event.;

      Please advise . Thanks.
      Sruli

      Attachments

        1. binlog_reader.c
          2 kB
          Sruli Ganor
        2. image-2023-06-14-17-42-55-285.png
          256 kB
          Sruli Ganor
        3. mysql-bin.000013
          1 kB
          Sruli Ganor

        Activity

          People

            georg Georg Richter
            sruli.ganor Sruli Ganor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.