|
|||||||||||
|
Strange Characters ending up in Slave Relay Log !!!
From: Kishore Jalleda <kjalleda(at)gmail.com>
Date: Wed Jul 04 2007 - 21:50:24 EDT
We are having a very strange problem with two of our slave servers, here is what is happening
mysql> select version();
070701 11:19:50 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013) 070701 11:19:50 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.022362' position 1024154 070701 11:19:50 [Note] Slave: connected to master 'replication@xxxxx.prod.xxxxx.com:3306',replication resumed in log 'mysql-bin.022362' at position 1024154 3) and after the backup is done, when the sql_thread is started back, it results in a "SQL Syntax error", thereby stopping replication... 4) and each time this happens the very last statement in the relay log before mysql rotates the log file after reconnecting to the master (see above error) , usually has garbage characters or some sql statements completely messed up like the one below
INSERT INTO clientsession_events_data
(clientsession_events_id, data)
VALUES
(xxxxxxx, 'array (\n
\'memory_stats\' => \n array (\n \'native_thread_count\' => 2 VALUES
(xxxxxx, 9, NOW(),
0, '')
/* /catalog/skudb/test3.php */.@ðF¢lB
Èê/@ðF¢ç»40@ðF¢3\3dr"@SYSTEMcustomer_xxxx/*shard
customer://14347061/reporting */
INSERT INTO clientsession_eve;
5) I can easily reproduce this error and as I was telling usually during the first few minutes of starting a backup or when the slave IO_Thread is behind and is reading a lot of Bin logs from the master .... I have seen this before in one of the posts, but there didn't seem to be a solution , I guess there was also a big that was filed ... I ran some ping tests to/from this machine and there was no packet loss, and strange thing is if network was a problem it should be happening all the time....
mysql> show global variables like "%timeout%";
| connect_timeout | 5 | | delayed_insert_timeout | 300 | | innodb_lock_wait_timeout | 50 | | interactive_timeout | 120 | | net_read_timeout | 5 | | net_write_timeout | 5 | | slave_net_timeout | 3600 | | table_lock_wait_timeout | 50 | | wait_timeout | 3 | Anybody has any ideas, or have encountered this before .....
-Kishore Jalleda
This archive was generated by hypermail 2.1.8 : Wed Jul 04 2007 - 22:00:01 EDT |
||||||||||
|
|||||||||||