Bug #39723 --maria-block-size can not be tested with mysql-test-run.pl
Submitted: 29 Sep 2008 10:14 Modified: 19 Dec 2008 18:25
Reporter: Philip Stoev Email Updates:
Status: Closed Impact on me:
None 
Category:Tests Severity:S3 (Non-critical)
Version:6.0, 6.0-maria OS:Any
Assigned to: Christoffer Hall CPU Architecture:Any

[29 Sep 2008 10:14] Philip Stoev
Description:
It is not possible to use mysql-test-run.pl to start a server with a non-default --maria-block-size option:

perl mysql-test-run.pl --start-and-exit --mysqld=--maria-block-size=1K

error log says:

080928 20:40:10 [ERROR] mysqld: Got error 'Block size in control file (8192) is different than given maria_block_size: 1024' when trying to use maria control file '/build/bzr/6.0-maria/mysql-test/var/master-data/maria_log_control'

This is possibly because mysqld is started once before it is started for a second and final time in the same dir. The first server start is with default maria settings and causes a default maria_log_control file to be created. The second start thus fails.

This prevents full Maria testing using mysql-test-run.pl .

How to repeat:
perl mysql-test-run.pl --start-and-exit --mysqld=--maria-block-size=1K

Suggested fix:
Either start mysqld only once or start it with the same maria options both times.
[7 Oct 2008 16:16] Magnus BlÄudd
Feels like mtr.pl is used in a "hackish" way using --start-and-exit, which  does not allow it to have full control of the test cycle.

Think we should discuss how to implement these tests as .test files.
[7 Oct 2008 16:51] Philip Stoev
Starting the server with --start-and-exit is a first stage for many testing frameworks which perform tests which can not be expressed with a .test/.result scenario, e.g. the Random Query Generator.
[10 Oct 2008 15:53] Valeriy Kravchuk
Thank you for a bug report. Verified also with mysql-6.0 main tree from bzr.
[19 Dec 2008 8:52] Christoffer Hall
A fix for this has been pushed to mysql-maria.
[19 Dec 2008 18:25] Paul DuBois
Test suite changes. No changelog entry needed.