Bug #68242 LOAD DATA LOCAL INFILE '/tmp/SQL_LOAD_MB-3-2' INTOTABLE

Submitted: 1 Feb 2013 9:38 Modified: 2 Feb 2013 9:06
Reporter: Anil Alpati Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:5.0.44 OS:Linux (suse)
Assigned to: CPU Architecture:Any

[1 Feb 2013 9:38] Anil Alpati
Description:
replication breaks due to master load data passing incorrect parameters - 
here is binary log information -

# at 349
#130201  1:23:20 server id 1  end_log_pos 46
#Begin_load_query: file_id: 3  block_len: 23
# at 395
#130201  1:23:20 server id 1  end_log_pos 224   Execute_load_query      thread_id=13    exec_time=0     error_code=0
SET TIMESTAMP=1359710600/*!*/;
SET @@session.sql_mode=1575223311/*!*/;
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
LOAD DATA  LOCAL INFILE '/tmp/SQL_LOAD_MB-3-3' INTOTABLE ztest FIELDS TERMINATED BY ',' (submission_key)/*!*/;
# file_id: 3
# at 573
#130201  1:23:20 server id 1  end_log_pos 600   Xid = 116
COMMIT/*!*/;
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;

How to repeat:
# at 349
#130201  1:23:20 server id 1  end_log_pos 46
#Begin_load_query: file_id: 3  block_len: 23
# at 395
#130201  1:23:20 server id 1  end_log_pos 224   Execute_load_query      thread_id=13    exec_time=0     error_code=0
SET TIMESTAMP=1359710600/*!*/;
SET @@session.sql_mode=1575223311/*!*/;
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
LOAD DATA  LOCAL INFILE '/tmp/SQL_LOAD_MB-3-3' INTOTABLE ztest FIELDS TERMINATED BY ',' (submission_key)/*!*/;
# file_id: 3
# at 573
#130201  1:23:20 server id 1  end_log_pos 600   Xid = 116
COMMIT/*!*/;
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
[2 Feb 2013 9:06] Shane Bester
Hi Anil,

This bug has been fixed for years already.  Please check your sql_mode(s) on master/slave, and consider upgrading.  5.0.44 is very very old.

References:
http://bugs.mysql.com/bug.php?id=43746
http://bugs.mysql.com/bug.php?id=22504

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.