Bug #28461 | Got fatal error 1236: 'bogus data in log event' from master | ||
---|---|---|---|
Submitted: | 16 May 2007 5:04 | Modified: | 12 Apr 2008 17:18 |
Reporter: | Rustam Valiev | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.0.22 | OS: | FreeBSD (6.1) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | bogus, master, replication, shutdown |
[16 May 2007 5:04]
Rustam Valiev
[28 Sep 2007 9:45]
Nils Goroll
There is nothing MySQL can do about this, IMHO. If the master crashes while writing the binlog (as you are experiencing power outages), i am not sure if it is safe to assume that the last statement in the binlog has *not* yet been executed on the master (which is what mysqlbinlog implicitly assumes when you feed it an incomplete binlog - it appends "ROLLBACK"). So, IMHO, it's up to you to decide whether you want the slave to get the statement the replication broke at. Here's what to do: * view the binlog on the master mysqlbinlog <LOG> * find the statement: # at <POSITION> * Either execute that statement on the slave or not, depending on whether you believe it was executed on the master or not * Get the next binlog and reset your slave to it: mysqlbinlog <NEXT LOG> Get the first statement pos (usually at 4) on the slave: STOP SLAVE;RESET SLAVE; CHANGE MASTER TO ... Master_Log_File="<NEXT LOG>",Master_Log_pos=<POS> Or, to be absolutely sure that the slave has consitent data, set it up again.
[30 Jan 2008 10:34]
Valeriy Kravchuk
Please, try to set sync_binlog=1 and check if this problem is repeatable after that. Read http://dev.mysql.com/doc/refman/5.0/en/replication-features-mastercrash.html for the details.
[1 Mar 2008 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[12 Mar 2008 17:18]
Susanne Ebrecht
Rustam, did the hints that Valeriy gave here solve your problem? Can we close this bug?
[12 Apr 2008 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".