Bug #22409 rpl_ndb_basic fails if run alone, mysqld compaining about to many arguments
Submitted: 15 Sep 2006 21:24 Modified: 16 Sep 2006 7:13
Reporter: Jonas Oreland Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Tests Severity:S3 (Non-critical)
Version:5.1 OS:
Assigned to: CPU Architecture:Any

[15 Sep 2006 21:24] Jonas Oreland
Description:
This comes from bug#21283
Which has nothing to do with problem.
So I open new bug report.

How to repeat:
jonas@perch:~/src/51-work/mysql-test> ./mysql-test-run.pl --mysqld=binlog-format
=row t/rpl_ndb_basic.test
Logging: ./mysql-test-run.pl --mysqld=binlog-format=row t/rpl_ndb_basic.test
Using binlog format 'row'
Using ndbcluster when necessary, mysqld supports it
Setting mysqld to support SSL connections
Binaries are debug compiled
Using MTR_BUILD_THREAD      = 0
Using MASTER_MYPORT         = 9306
Using MASTER_MYPORT1        = 9307
Using SLAVE_MYPORT          = 9308
Using SLAVE_MYPORT1         = 9309
Using SLAVE_MYPORT2         = 9310
Using NDBCLUSTER_PORT       = 9310
Using NDBCLUSTER_PORT_SLAVE = 9311
Using IM_PORT               = 9312
Using IM_MYSQLD1_PORT       = 9313
Using IM_MYSQLD2_PORT       = 9314
Killing Possible Leftover Processes
Removing Stale Files
Installing Master Database
Installing Master Database
Installing Slave Database
Installing Slave Database
Installing Slave Database
Installing Master Cluster
Installing Slave Cluster
Stopping All Servers
=======================================================
Starting Tests in the 'main' suite

TEST                           RESULT         TIME (ms)
-------------------------------------------------------

mysql-test-run: WARNING: Process 30620 died
Failed to create 'cluster/apply_status' table
[ fail ]

Unexpected termination, probably when starting mysqld
Result from queries before failure can be found in r/rpl_ndb_basic.log

Aborting: rpl_ndb_basic failed in default mode. To continue, re-run with '--forc
e'.
Stopping All Servers
mysql-test-run: WARNING: can't kill process 30618
mysql-test-run: WARNING: can't kill process 30619
jonas@perch:~/src/51-work/mysql-test> more var/log/master.err 
CURRENT_TEST: rpl_ndb_basic
/home/jonas/src/51-work/sql/mysqld: Too many arguments (first extra is 'binlog-f
ormat=row').
Use --help to get a list of available options
jonas@perch:~/src/51-work/mysql-test> 

Suggested fix:
Dont add too many arguments?
(I unfortunatly cant debug perl very well...)
[16 Sep 2006 7:13] Kristian Nielsen
This is not a bug, it is wrong arguments passed to mysql-test-run.pl:

    > ./mysql-test-run.pl --mysqld=binlog-format=row

The correct way is

    > ./mysql-test-run.pl --mysqld=--binlog-format=row

(note extra double dashes '--').

Hence the complaint from mysqld.
[16 Sep 2006 7:16] Jonas Oreland
thx for spotting it...
i just copied what reporter wrote...
maybe a better error message could be good.