Bug #11938 Unkown error causes SQL Thread to stop replication
Submitted: 14 Jul 2005 13:33 Modified: 23 Jul 2005 13:56
Reporter: Jonathan Miller Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S2 (Serious)
Version:5.1 OS:Linux (Linux)
Assigned to: Tomas Ulin CPU Architecture:Any

[14 Jul 2005 13:33] Jonathan Miller
Description:
Was checking on the systems after the master cluster had gone down, and found that the slave SQL thread had stopped. Not 100% sure what caused this thread to stop. I am thinking that the slave missed a drop database because TESTER1 does not exist in the database. 

Never the less, the error message below provides nothing useful as to what needs to be corrected.

050714  1:37:27 [Note] NDB Binlog: CREATE TABLE Event: REPL$TESTER1/t1
050714  1:37:32 [Note] NDB Binlog: CREATE TABLE Event: REPL$TESTER1/t1
050714  1:37:33 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'master1.000004' position 25082440

How to repeat:
unkown

Suggested fix:
If it was a missing database, then the error should read:

050714  1:37:33 [ERROR] Error running query, Database not found, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'master1.000004' position 25082440

or

050714  1:37:33 [ERROR] Error running query, Database TESTER1 does not exist, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'master1.000004' position 25082440
[23 Jul 2005 13:56] Tomas Ulin
errorcodses have been added where missing