Connector/C fails to read MariaDB 10.6+ binary logs
Hi, I'm using MariaDB Connector/C to 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' Please advise Sruli Ganor
sruli67--- via discuss skrev den 2023-06-14 13:42:
What's funny about it?
List-Id: MariaDB Discussion List <discuss.lists.mariadb.org> Archived-At: <https://lists.mariadb.org/hyperkitty/list/discuss@lists.mariadb.org/message/JVDGKIC7KIYOH53WCWFK3H76F4HBKILW/> List-Archive: <https://lists.mariadb.org/hyperkitty/list/discuss@lists.mariadb.org/> List-Help: <mailto:discuss-request@lists.mariadb.org?subject=help> List-Owner: <mailto:discuss-owner@lists.mariadb.org> List-Post: <mailto:discuss@lists.mariadb.org> List-Subscribe: <mailto:discuss-join@lists.mariadb.org> List-Unsubscribe: <mailto:discuss-leave@lists.mariadb.org> this headers does not break dkim, the funny content does
Hi Benny! Benny Pedersen via discuss <discuss@lists.mariadb.org>, 14/06/2023 – 14:01:11 (+0200):
this headers does not break dkim, the funny content does
Thanks for pointing this out, I believe this should now be fixed. Regards! -- Faustin Lammler MariaDB Foundation GPG: F652 BCD1 1AA8 8975 F010 48A5 390A 2F27 832A 5C79
Hi! sruli67--- via discuss <discuss@lists.mariadb.org>, 14/06/2023 – 12:54:47 (-0000):
Not sure I understand what's funny in my contents. Is this an internal MariaDB guys sense of humor?
I believe that Benny was speaking about the footer of our mailing list system that was wrong and that has now been fixed. More details about the recent mailing list migration at https://mariadb.org/mailing-lists/ Regards, -- Faustin Lammler MariaDB Foundation GPG: F652 BCD1 1AA8 8975 F010 48A5 390A 2F27 832A 5C79
Let me add that sometimes (mostly in older Connector/C versions) function mariadb_rpl_fetch returns this error when reading XA transactions from MariaDB 10.6+ binary log: Read next binary log event failed; mariadb_rpl_fetch error 1236 (Failed to replace GTID event with backwards-compatible event: corrupt event.; the first event 'mysql-binlog.000329' at 685, the last event read from 'mysql-binlog.000329' at 1989, the last byte read from 'mysql-bin-changelog.000329' at 2161.) But normally. in 3.3.5 it crashes with no error. Thanks
Hi, could you please file a jira issue (https://jira.mariadb.org/) and attach a binary log which could be used to repeat the problem? Thanks! /Georg On Wed, Jun 14, 2023 at 1:09 PM sruli67--- via discuss < discuss@lists.mariadb.org> wrote:
Hi, I'm using MariaDB Connector/C to 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'
Please advise Sruli Ganor _______________________________________________ Mailing list: $list_owner Post to : $list_post Unsubscribe : $list_unsubscribe More help : $list_help
Opened https://jira.mariadb.org/browse/CONC-650 Thanks in advance. Sruli
participants (4)
-
Benny Pedersen
-
Faustin Lammler
-
Georg Richter
-
sruli67@gmail.com