It turns out that there is a bug that causes replication on a 5.1
slave to fail when reading LOAD DATA statements from a
4.1-or-earlier master.
About a month ago, I set up a data warehouse for an old 4.1.21
system that can't be upgraded. I decided to use the latest 5.1
beta to take advantage of partitioning, but within the first day
replication stopped rather suddenly and with a nondescript
error:
[ERROR] Error running query, slave SQL thread aborted.
Fix the problem, and restart the slave SQL thread with
"SLAVE START". We stopped at log 'xxx' position xxx
Using mysqlbinlog, I compared the relay log and the masters
binary log around that position, and noticed the relay log
appeared corrupt! I don't recall the exact steps I took, but I
isolated the problem to a LOAD DATA INFILE statement, and filed
my first issue with MySQL Enterprise support.
The great folks at MySQL Support had a …
[Read more]