Bug #49652 | LOAD DATA - missing schema name in binlog can break replication | ||
---|---|---|---|
Submitted: | 14 Dec 2009 0:32 | Modified: | 14 Dec 2009 12:41 |
Reporter: | Victor Kirkebo | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 6.0-backup, 6.0.14 | OS: | Any |
Assigned to: | Luis Soares | CPU Architecture: | Any |
Tags: | binlog, LOAD DATA LOCAL INFILE |
[14 Dec 2009 0:32]
Victor Kirkebo
[14 Dec 2009 6:37]
Sveta Smirnova
Thank you for the report. Verified as described using latest 6.0-backup tree. Workaround: use binlog_format=row
[14 Dec 2009 11:45]
Luis Soares
Most likely a duplicate of BUG#48297.
[14 Dec 2009 12:41]
Luis Soares
I have built latest mysql-6.0-backup: revision-id: charles.bell@sun.com-20091212171821-aofqeg53jcwvag7a Then, I created a test (based on the one reported): -- source include/master-slave.inc -- source include/have_binlog_format_statement.inc create database mydb1; use mydb1; create table tb1(f1 varchar(10)); create database mydb2; use mydb2; -- eval load data local infile '$MYSQLTEST_VARDIR/std_data/words.dat' into table mydb1.tb1 -- sync_slave_with_master -- exit Then, I run the test against the built mysql-6.0-backup tree. I got this: Last_SQL_Error Error 'Table 'mydb2.tb1' doesn't exist' on query. Default database: 'mydb2'. Query: 'LOAD DATA INFILE '../../tmp/SQL_LOAD-2-1-1.data' IGNORE INTO TABLE `tb1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (f1)' At this point I patched mysql-6.0-backup with the patch for BUG#48297, and rebuilt it. Then, I run the same test again: rpl.rpl_bug49652 'stmt' [ pass ] 157 Conclusion: This is a duplicate of BUG#48297.
[14 Dec 2009 12:45]
Luis Soares
Indeed, BUG#48297 cset does not appear in revision history for mysql-6.0-backup (in revision-id: charles.bell@sun.com-20091212171821-aofqeg53jcwvag7a): $ bzr log -n0 --line | grep 48297 $