Bug #58092 Test "rpl_cross_version" has "copy_file" failing
Submitted: 9 Nov 2010 19:44 Modified: 20 Dec 2010 3:09
Reporter: Joerg Bruehe Email Updates:
Status: Closed Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S3 (Non-critical)
Version:5.1.50 and up, cluster OS:Other (FreeBSD + Mac OS X)
Assigned to: Bjørn Munch

[9 Nov 2010 19:44] Joerg Bruehe
Description:
Test "rpl.rpl_cross_version" fails with this message:

=====
rpl.rpl_cross_version 'stmt'             [ retry-fail ]
        Test ended at YYYY-MM-DD HH:MM:SS

CURRENT_TEST: rpl.rpl_cross_version
mysqltest: In included file "./include/setup_fake_relay_log.inc": At line 80: command "copy_file" failed with error 1

The result from queries just before the failure was:
==== Initialize ====
Setting up fake replication from MYSQL_TEST_DIR/suite/binlog/std_data/binlog_old_version_4_1.000001

 - saving '/PATH/mysql-test/var/log/rpl.rpl_cross_version-stmt/' to '/PATH/mysql-test/var/log/rpl.rpl_cross_version-stmt/'
=====

This happens for all three log modes: "row", "stmt", "mix".

I see it in the archived test logs of 5.1.50, 5.1.51, and 5.1.52, even though it hasn't been reported back then,
and I now get it in the build of cluster-7.1.9 which is based on 5.1.51.

It is specific to FreeBSD 7 (server only) and OS X 10.5 and 10.6,
whereas OS X 10.4 and all other platforms pass the test.

How to repeat:
Found by running the full test suite in a release build.
[23 Nov 2010 19:57] Davi Arnaut
copy_file should probably return a better error message.
[23 Nov 2010 19:59] Davi Arnaut
Given a better error, we should be able to decide whether its a environment problem (like, lack of disk space) or it its a test problem.
[1 Dec 2010 10:12] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/125630

2956 Bjorn Munch	2010-12-01
      Bug #58092 Test "rpl_cross_version" has "copy_file" failing
      I am not fixing the test failure
      Adds printing of my_errno when commands fail, could hopefully help
[9 Dec 2010 16:23] Bjørn Munch
Pushed to -mtr trees
[17 Dec 2010 12:48] Bugs System
Pushed into mysql-5.1 5.1.55 (revid:georgi.kodinov@oracle.com-20101217124435-9imm43geck5u55qw) (version source revid:bjorn.munch@oracle.com-20101209193247-7c4ob7wuy21clt42) (merge vers: 5.1.55) (pib:24)
[17 Dec 2010 12:51] Bugs System
Pushed into mysql-5.5 5.5.9 (revid:georgi.kodinov@oracle.com-20101217124733-p1ivu6higouawv8l) (version source revid:bjorn.munch@oracle.com-20101209195322-embe21sfutgb3oy0) (merge vers: 5.5.8) (pib:24)
[17 Dec 2010 12:55] Bugs System
Pushed into mysql-trunk 5.6.1 (revid:georgi.kodinov@oracle.com-20101217125013-y8pb3az32rtbplc9) (version source revid:anitha.gopi@sun.com-20101210041312-50t9adyhwwybsm6x) (merge vers: 5.6.1) (pib:24)
[20 Dec 2010 3:09] Paul Dubois
Changes to test suite. No changelog entry needed.