Inconsistencies crash PXC without being verbose why
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
Won't Fix
|
Medium
|
Unassigned | |||
5.6 |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
node3 mysql> create table a (a int) engine=innodb;
Query OK, 0 rows affected (0.01 sec)
node3 mysql> set wsrep_on=0;
Query OK, 0 rows affected (0.00 sec)
node3 mysql> insert into a values (2);
Query OK, 1 row affected (0.00 sec)
node3 mysql> set wsrep_on=1;
Query OK, 0 rows affected (0.00 sec)
node3 mysql> select * from a;
+------+
| a |
+------+
| 2 |
+------+
1 row in set (0.00 sec)
node3 mysql> delete from a;
Query OK, 1 row affected (0.00 sec)
So I caused an inconsistency on purpose, and deleted that row that was missing on the other nodes.
I know this is is not normal, I should not be doing that.
The reason why I wanted to do that is to see what error message you get. I wondered: Does it tell anything on what was inconsistent? Can we find out which table, which row? Maybe output the row-event/writeset in readable format?
[root@node1 ~]# rpm -qa | grep Percona-Xt
Percona-
Percona-
Percona-
Percona-
Config:
[mysqld]
datadir = /var/lib/mysql
log_error = error.log
query_cache_size=0
query_cache_type=0
binlog_format = ROW
innodb_
innodb_
innodb_flush_method = O_DIRECT
innodb_
innodb_
wsrep_cluster_name = mycluster
wsrep_node_name = node1
wsrep_provider = /usr/lib64/
wsrep_provider_
wsrep_slave_threads = 4
wsrep_auto_
wsrep_sst_method = xtrabackup
wsrep_sst_auth = sst:secret
wsrep-debug=1
wsrep-provider-
innodb_
Here's what I got on the node that was executed::
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/ asio_tcp. cpp:failed_ handler( ):45: failed handler from read_completion _condition: 474 socket 0x7f041400d2d8 13 error 1 1 state 2 asio_tcp. cpp:failed_ handler( ):52: local endpoint tcp://192. 168.70. 2:4567 remote endpoint tcp://192. 168.70. 3:43628 gmcast. cpp:handle_ up():1367: socket in state 3 gmcast_ proto.cpp: set_state( ):13: State change: OK -> FAILED gmcast. cpp:handle_ failed( ):637: handle failed: v=0,lu= 9d24bc26- 97d8-11e3- 860f-fab1d79f1e 19,ru=749ac05c- 97d9-11e3- 9ae6-0f4dd301e3 1f,ls=0, rs=0,la= tcp://0. 0.0.0:4567, ra=tcp: //192.168. 70.3:4567, mc=,gn= mycluster, ch=0,st= FAILED, pr=1,tp= 0x7f041400d230, ts=440601165956 8 gmcast. cpp:handle_ failed( ):666: (9d24bc26- 97d8-11e3- 860f-fab1d79f1e 19, 'tcp:// 0.0.0.0: 4567') setting next reconnect time to 4407096155576 for tcp://192. 168.70. 3:4567 asio_tcp. cpp:close( ):240: closing 0x7f041400d2d8 state 3 send_q size 0 gmcast. cpp:update_ addresses( ):805: (9d24bc26- 97d8-11e3- 860f-fab1d79f1e 19, 'tcp:// 0.0.0.0: 4567') address 'tcp:// 192.168. 70.2:4567' pointing to uuid 9d24bc26- 97d8-11e3- 860f-fab1d79f1e 19 is blacklisted, skipping gmcast. cpp:update_ addresses( ):846: (9d24bc26- 97d8-11e3- 860f-fab1d79f1e 19, 'tcp:// 0.0.0.0: 4567') --- mcast tree begin --- gmcast. cpp:update_ addresses( ):863: Proto: v=0,lu= 9d24bc26- 97d8-11e3- 860f-fab1d79f1e 19,ru=3ef17bf4- 97da-11e3- 8b92-57d14582fd 80,ls=0, rs=0,la= tcp://0. 0.0.0:4567, ra=tcp: //192.168. 70.4:4567, mc=,gn= mycluster, ch=0,st= OK,pr=1, tp=0x7f04140031 60,ts=440601167 6004 gmcast. cpp:update_ addresses( ):887: (9d24bc26- 97d8-11e3- 860f-fab1d79f1e 19, 'tcp:// 0.0.0.0: 4567') self index: 1 gmcast. cpp:update_ addresses( ):888: (9d24bc26- 97d8-11e3- 860f-fab1d79f1e 19, 'tcp:// 0.0.0.0: 4567') --- mcast tree end --- asio_tcp. cpp:failed_ handler( ):45: failed handler from read_handler:373 socket 0x7f041400d2d8 -1 error 1 0 state 0 asio_tcp. cpp:failed_ handler( ):52: local endpoint tcp://192. 168.70. 2:4567 remote endpoint tcp://192. 168.70. 3:43628 asio_tcp. cpp:~AsioTcpSoc ket():33: dtor for 0x7f041400d2d8 asio_tcp. cpp:failed_ handler( ):45: failed handler from read_completion _condition: 474 socket 0x7f0414003208 14 error 1 1 state 2 asio_tcp. cpp:failed_ handler( ):52: local endpoint tcp://192. 168.70. 2:4567 remote endpoint tcp://192. 168.70. 4:58637
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2014-02-17 14:15:25 5046 [Note] [Debug] WSREP: gcomm/src/
2...