Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.5
-
None
Description
The output below is from a 10.5-based branch. I didn't check if it's reproducible on other versions.
galera.rpl_row_annotate 'innodb' [ fail ]
|
Test ended at 2022-02-08 15:24:13
|
|
CURRENT_TEST: galera.rpl_row_annotate
|
mysqltest: At line 40: query 'SHOW BINLOG EVENTS IN 'mysqld-bin.000001' FROM $start_pos' failed: 1220: Error when executing command SHOW BINLOG EVENTS: Could not find target log
|
Indeed,
$ ls -l var/log/galera.rpl_row_annotate-innodb/mysqld.2/data/mysqld-bin*
|
-rw-rw---- 1 ec2-user ec2-user 373 Feb 8 15:24 var/log/galera.rpl_row_annotate-innodb/mysqld.2/data/mysqld-bin.000002
|
-rw-rw---- 1 ec2-user ec2-user 1289 Feb 8 15:24 var/log/galera.rpl_row_annotate-innodb/mysqld.2/data/mysqld-bin.000003
|
-rw-rw---- 1 ec2-user ec2-user 20 Feb 8 15:24 var/log/galera.rpl_row_annotate-innodb/mysqld.2/data/mysqld-bin.index
|
There is the file for the 1st node:
$ ls -l var/log/galera.rpl_row_annotate-innodb/mysqld.1/data/mysqld-bin*
|
-rw-rw---- 1 ec2-user ec2-user 1289 Feb 8 15:24 var/log/galera.rpl_row_annotate-innodb/mysqld.1/data/mysqld-bin.000001
|
-rw-rw---- 1 ec2-user ec2-user 20 Feb 8 15:24 var/log/galera.rpl_row_annotate-innodb/mysqld.1/data/mysqld-bin.index
|
From the error log on the 2nd node:
2022-02-08 15:24:09 0 [Note] WSREP: (279ad9e2-8591, 'tcp://0.0.0.0:16005') turning message relay requesting off
|
WSREP_SST: [INFO] Extracting binlog files: (20220208 15:24:09.N)
|
x mysqld-bin.000002
|
WSREP_SST: [INFO] Joiner cleanup: rsync PID=60582, stunnel PID=0 (20220208 15:24:09.N)
|
Attachments
Issue Links
- is blocked by
-
MDEV-27524 Incorrect binlogs after Galera SST using rsync and mariabackup
-
- Closed
-
- is caused by
-
MDEV-27524 Incorrect binlogs after Galera SST using rsync and mariabackup
-
- Closed
-
- relates to
-
MDEV-27737 Wsrep SST scripts not working on FreeBSD
-
- Closed
-
The problem doesn't seem to be caused by SST transferring wrong logs.
At the very beginning of the test it does RESET MASTER on both nodes.
On the second node, it doesn't work. If I add show binary logs or check mysqld-bin.index file, it shows
+show binary logs;
+Log_name File_size
+mysqld-bin.000003 329
RESET MASTER;
+show binary logs;
+Log_name File_size
+mysqld-bin.000003 329
Adding a sleep after RESET MASTER doesn't help, so it's not a race condition (or if it is, it's longer than 10 seconds which I tried).
And it cannot be coming from the donor, it's rsync and anyway, the donor only has 2 logs (or even one if I do RESET MASTER on the first node before).
But at the same time RESET MASTER on the 1st node seems to work as expected.