Hi, I sent this message once already, but it didn't show up google groups and I got no replies so I'm sending it again. If it is a dupe I appologize.


I have a master -> slave setup that's been working for years. Then yesterday I shutdown the slave with a "shutdown -r now", added some more ram, booted it back up. Then a few minutes later data stopped being inserted/updated into tables. The slave process was still running, and the Read_Master_Log_Pos var in "show slave status" was incrementing away like everything was just fine. So I looked in the log file and found this:


030911 18:01:51 /usr/sbin/mysqld: Normal shutdown

030911 18:01:51 Slave I/O thread exiting, read up to log 'db-bin.012', position 829896886
030911 18:07:57 mysqld started
030911 18:07:58 InnoDB: Started
/usr/sbin/mysqld: ready for connections.
Version: '4.0.12-log' socket: '/var/lib/mysql/mysql.sock' port: 3306
030911 18:07:58 Slave I/O thread: connected to master '[EMAIL PROTECTED]:3306', replication started in log 'db-bin.012' at position 829896886
030911 18:16:17 Error in Log_event::read_log_event(): 'read error', data_len=149,event_type=2
030911 18:16:17 Error reading relay log event: slave SQL thread aborted because of I/O error
030911 18:16:17 Could not parse log event entry, check the master for binlog corruption
This may also be a network problem, or just a bug in the master or slave code.
030911 18:16:17 Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'db-bin.012' position 829892665



I've searched google for these errors and can't find any solutions. My specific question is it says "check the master for binlog corruption" so I did a "mysqlbinlog -j 829892665 db-bin.012" on the master and it works fine. So no obvious corruption there. Is there anything else to check that could be fixed?


I think at the very least there is a pretty obvious bug here that "show slave status" doesn't indicate any problems, but no data is being inserted/updated into tables.

I tried to restore the slave from a backup and got a similar error. So it must be a problem on the master:

Error in Log_event::read_log_event(): 'read error', data_len=181,event_type=2
030914 2:04:14 Error reading relay log event: slave SQL thread aborted because of I/O error
030914 2:04:14 Could not parse log event entry, check the master for binlog corruption
This may also be a network problem, or just a bug in the master or slave code.
030914 2:04:14 Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'db-bin.012' position 709264328




Master is:
MySQL 4.0.14-standard-log
Redhat 8
kernel 2.4.18-14

Slave is:
MySQL 4.0.12-log
Redhat 9
kernel 2.4.20-19.9

Thanks for any help!
Dan


-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to