[MDEV-21920] binlog_encryption.rpl_gtid_basic test failure with --ps Created: 2020-03-11  Updated: 2020-03-14  Resolved: 2020-03-12

Status: Closed
Project: MariaDB Server
Component/s: Protocol
Affects Version/s: 10.5
Fix Version/s: 10.5.2

Type: Bug Priority: Blocker
Reporter: Alexander Barkov Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-21926 rpl.rpl_gtid_basic, rpl.rpl_sp test... Closed

 Description   

This test:

./mtr --ps binlog_encryption.rpl_gtid_basic

is failing as of this 10.5 server commit:

commit 00749980acf617fbc26b5cdaff6e256a673dab76 (HEAD -> 10.5)
Author: Varun Gupta <varun.gupta@mariadb.com>
Date:   Tue Mar 10 18:12:11 2020 +0530
 
    Fixing a compilation failure on windows

with the following output:

binlog_encryption.rpl_gtid_basic 'cmpr,innodb,mix' [ fail ]
        Test ended at 2020-03-11 22:03:50
 
CURRENT_TEST: binlog_encryption.rpl_gtid_basic
--- /home/bar/maria-git/server.10.5.test/mysql-test/suite/binlog_encryption/rpl_gtid_basic.result	2020-03-10 18:20:20.159173938 +0400
+++ /home/bar/maria-git/server.10.5.test/mysql-test/suite/binlog_encryption/rpl_gtid_basic.reject	2020-03-11 22:03:50.497396584 +0400
@@ -3,7 +3,7 @@
 *** GTID position should be empty here ***
 SELECT BINLOG_GTID_POS('<BINLOG_FILE>',<BINLOG_POS>);
 BINLOG_GTID_POS('<BINLOG_FILE>',<BINLOG_POS>)
-
+�
 CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(10)) ENGINE=MyISAM;
 CREATE TABLE t2 (a INT PRIMARY KEY, b VARCHAR(10)) ENGINE=InnoDB;
 INSERT INTO t1 VALUES (1, "m1");

It seems that the bug was introduced by the following libmariadb commit:

commit b7047003c5b460f16b901359c68cbe670e52cf07 (HEAD)
Author: Georg Richter <georg@mariadb.com>
Date:   Tue Mar 10 17:21:24 2020 +0100
 
    Fixed bug which was introduced in 1218ffac1a9adefd6428e68b6154bc54a04343aa:
    
    Don't return a truncation error (101) in case length is larger than parameter offset.

How to repeat

Clone the current 10.5, change directory to the newly created tree, then run the following commands:

git reset --hard 00749980acf617fbc26b5cdaff6e256a673dab76
cmake .
cd libmariadb/
git reset --hard b7047003c5b460f16b901359c68cbe670e52cf07
cd ..
git add libmariadb
make -j8
cd mysql-test
./mtr --ps binlog_encryption.rpl_gtid_basic



 Comments   
Comment by Georg Richter [ 2020-03-12 ]

fixed. rev 3be5897c3346639fa6d7195480d93108798c4917

Generated at Thu Feb 08 09:10:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.