Bug #47144 replication stoped
Submitted: 4 Sep 2009 17:32 Modified: 4 Oct 2009 20:52
Reporter: Rajakumar Velu Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Replication Severity:S2 (Serious)
Version:5.0.45 OS:Linux (Es and As)
Assigned to: CPU Architecture:Any

[4 Sep 2009 17:32] Rajakumar Velu
Description:
Hi,

we have MySQL master as
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
# mysql -V
mysql  Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (x86_64) using readline 5.0

Slave MySQL is
$ mysql -V
mysql  Ver 14.12 Distrib 5.0.22, for pc-linux-gnu (i686) using readline 5.0
$ cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 6)

Replication failed with 

Last_Error: Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can check this by running 'mysqlbinlog' on the relay log), a network problem, or a bug in the master's or slave's MySQL code. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SHOW SLAVE STATUS' on this slave.
               
At the same time the Relay_Log_Space: show as 18446744071808678981 this is also wrong

this happned many time

How to repeat:
mysql> show slave status \G
*************************** 1. row ***************************
             Slave_IO_State: Waiting for master to send event
                Master_Host: Masterdb
                Master_User: repl
                Master_Port: 3306
              Connect_Retry: 60
            Master_Log_File: db5-bin.000041
        Read_Master_Log_Pos: 23416589
             Relay_Log_File: ympdbdw-relay-bin.000139
              Relay_Log_Pos: 211420137
      Relay_Master_Log_File: db5-bin.000040
           Slave_IO_Running: Yes
          Slave_SQL_Running: No
            Replicate_Do_DB: bemusic,tmpfs,bemusic_archive,bemusic,tmpfs,bemusic_archive,bemusic,tmpfs,bemusic_archive
        Replicate_Ignore_DB:
         Replicate_Do_Table:
     Replicate_Ignore_Table: bemusic.queue_item_archive,bemusic.queue_item_archive,bemusic.queue_item_archive
    Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
                 Last_Errno: 0
                 Last_Error: Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can check this by running 'mysqlbinlog' on the relay log), a network problem, or a bug in the master's or slave's MySQL code. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SHOW SLAVE STATUS' on this slave.
               Skip_Counter: 0
        Exec_Master_Log_Pos: 1061968117
            Relay_Log_Space: 18446744071808678981
            Until_Condition: None
             Until_Log_File:
              Until_Log_Pos: 0
         Master_SSL_Allowed: No
         Master_SSL_CA_File:
         Master_SSL_CA_Path:
            Master_SSL_Cert:
          Master_SSL_Cipher:
             Master_SSL_Key:
      Seconds_Behind_Master: NULL

Suggested fix:
then I have stoped the slave "stop slave;"
then stoppend MySQL service
then deleted all log files then started the MySQL and slave service then it started without issue but it rebuild the DB from the begining( from the old binary log also it taking long time)
[4 Sep 2009 20:52] Sveta Smirnova
Thank you for the report.

But version 5.0.45 is old and at least one bug related to this error fixed since (bug #26489) Please upgrade to current version 5.0.85 and check if this solves corruption problem.
[4 Sep 2009 20:53] Sveta Smirnova
Please note fix for bug #26489 was for master, so you should upgrade both master and slave.
[4 Oct 2009 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".