unknown error replication run but no data update after secs
i use 10.0.14,
this is three day, how to find error in this replication, im using vpn 2 master 1 slave,
i do full backup in three day, clear connection, create new connection, change server id 102 to 202 but same result,
i have to 2 master 1 slave,
master connection:
- MMXATN serverid 101
- MMXGSR serverid 202
slave :
SVR-MMX serverid 100
in slave i check MMXATN run normally, data is up to date,
but MMXGSR only run few second after that i see in status not update and without error :
i check bin log in master :
MariaDB [(none)]> show master status;
+------
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------
| MMXGSR-bin.000001 | 26018774 | ssd002 | |
+------
1 row in set (0.65 sec)
to check replication thread run in master :
MariaDB [(none)]> show processlist;
+------
| Id | User | Host | db | Command | Time | State | Info | Progress |
+------
| 13182 | root | 10.10.1.100:1050 | ssd002 | Sleep | 0 | | NULL | 0.000 |
| 13781 | slaveGSR | 10.10.30.200:64298 | NULL | Binlog Dump | 32 | Writing to net | NULL | 0.000 |
| 13794 | root | 10.10.30.111:61754 | NULL | Query | 0 | init | show processlist | 0.000 |
+------
3 rows in set (0.65 sec)
so i check error log in slave :
141030 21:35:38 [ERROR] Master 'MMXGSR': Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
141030 21:35:38 [Note] Master 'MMXGSR': Slave I/O thread: Failed reading log event, reconnecting to retry, log 'MMXGSR-bin.000001' at position 9132941
141030 21:36:49 [ERROR] Master 'MMXGSR': Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
141030 21:36:49 [Note] Master 'MMXGSR': Slave I/O thread: Failed reading log event, reconnecting to retry, log 'MMXGSR-bin.000001' at position 9132941
here result in slave server :
MariaDB [(none)]> show all slaves status\G
*******
Replicate
Replicate_
Master_
Replicate_
Slave_
*******
Replicate
Replicate_
Master_
Replicate_
Slave_
2 rows in set (0.73 sec)
and here result mysqlbinlog position 9132941 with long query replace insert :
# at 9132941
#141030 18:15:31 server id 202 end_log_pos 14768492 Query thread_id=8934 exec_time=2 error_code=0
SET TIMESTAMP=
REPLACE INTO masteroutlet VALUES
( '0', 'NON MEMBER', 'MMX MART DEFAULT CUSTOMER', 'DONT EDIT DONT DELETE', 'NY', '-', '-', '-', '0', '000', '0', '0', '0', '0', '0', '0', '2013/12/04', '04/12/2013 16:27:00', 0, 1, 0, 0, 1, 0, '0', '0', '0', '0', '0', '0', '0', 0, 0, NULL, '0', 'Ak', '0', '0', '0', '0', '0', '0', '0', 0, 0, 0, '0', 0, '0', '0', '0', '0', '-', '0', '0', '0', '0', '0', 2, 'SISTEM', 0, '-', '2013/08/01', '3', '2090/09/04', NULL, '0', '0', NULL, NULL, NULL, NULL, '2013/12/04 11:34:37') ,
is because query too large ?
but why another connection (MMXATN) normally.
global variable on master MMXGSR :
http://
global variable on slave :
http://
i check variable :
both max_allowed_packet = 100M
slave_max_
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- MariaDB Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Irwan
- Solved:
- Last query:
- Last reply: