[MDEV-21289] multi_source.multisource and binlog_encryption.multisource fails Created: 2019-12-11  Updated: 2022-12-08  Resolved: 2022-12-08

Status: Closed
Project: MariaDB Server
Component/s: Replication, Tests
Affects Version/s: 10.0, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Alice Sherepa Assignee: Angelique Sklavounos (Inactive)
Resolution: Duplicate Votes: 1
Labels: None

Issue Links:
Duplicate
duplicates MDEV-23912 Orphan files left after failed relay ... Open

 Description   

./mtr multi_source.multisource --repeat=2 

multi_source.multisource 'innodb_plugin' [ pass ]   3651
multi_source.multisource 'innodb_plugin' [ fail ]
        Test ended at 2019-12-11 19:31:46
 
CURRENT_TEST: multi_source.multisource
mysqltest: In included file "./extra/rpl_tests/multisource.inc": 
included from /git/10.1/mysql-test/suite/multi_source/multisource.test at line 2:
At line 28: query 'change master 'abc' to relay_log_file=''' failed with wrong errno 1201: 'Could not initialize master info structure for 'abc'; more error messages can be found in the MariaDB error log', instead of 1380...
 
The result from queries just before the failure was:
change master 'abc' to relay_log_file='';
 
 - saving '/git/10.1/mysql-test/var/log/multi_source.multisource-innodb_plugin/' to '/git/10.1/mysql-test/var/log/multi_source.multisource-innodb_plugin/'
***Warnings generated in error logs during shutdown after running tests: multi_source.multisource
 
2019-12-11 19:31:46 140534218184448 [ERROR] Failed to open the relay log './' (relay_log_pos 4)
2019-12-11 19:31:46 140534218184448 [ERROR] Could not find target log during relay log initialization

the same test is called from binlog_encryption suite:

binlog_encryption.multisource 'innodb_plugin' [ fail ]
        Test ended at 2019-12-11 19:30:33
 
CURRENT_TEST: binlog_encryption.multisource
mysqltest: In included file "./extra/rpl_tests/multisource.inc": 
included from /git/10.1/mysql-test/suite/binlog_encryption/multisource.test at line 3:
At line 28: query 'change master 'abc' to relay_log_file=''' failed with wrong errno 1201: 'Could not initialize master info structure for 'abc'; more error messages can be found in the MariaDB error log', instead of 1380...
 
The result from queries just before the failure was:
change master 'abc' to relay_log_file='';
 
 - saving '/git/10.1/mysql-test/var/log/binlog_encryption.multisource-innodb_plugin/' to '/git/10.1/mysql-test/var/log/binlog_encryption.multisource-innodb_plugin/'
***Warnings generated in error logs during shutdown after running tests: binlog_encryption.multisource
 
2019-12-11 19:30:33 139749230360320 [ERROR] Failed to open the relay log './' (relay_log_pos 4)
2019-12-11 19:30:33 139749230360320 [ERROR] Could not find target log during relay log initialization



 Comments   
Comment by Andrei Elkin [ 2021-01-13 ]

Most probably the test init/cleanup issue.

Comment by Angelique Sklavounos (Inactive) [ 2022-12-07 ]

This appears to have the same cause as MDEV-23912. Relay log-related files for the abc master (for the unsuccessful CM statement) remain in the data dir after a single test run.

From 10.7 (9e27e53d*), the repeated test does not fail, and likewise the behavior in MDEV-23912 is also not observed.

* This was also seen back with initial testing in April with older versions of 10.7 and 10.9 (exact versions not noted).

Comment by Angelique Sklavounos (Inactive) [ 2022-12-08 ]

This issue should be fixed with MDEV-23912.

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