MySQL crash when doing "SET GLOBAL rpl_semi_sync_master_enabled = 1;"
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
||||
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
New
|
Undecided
|
Unassigned | |||
5.6 |
New
|
Undecided
|
Unassigned | |||
5.7 |
New
|
Undecided
|
Unassigned |
Bug Description
MySQL: Percona-
OS: CentOS 6.7
After plugin install:
mysql> SET GLOBAL rpl_semi_
Query OK, 0 rows affected (0.00 sec)
mysql> show status like '%semi%';
ERROR 2013 (HY000): Lost connection to MySQL server during query
Error log:
2015-09-24 10:24:36 27566 [Note] Start asynchronous binlog_dump to slave (server_id: 1007), pos(, 4)
2015-09-24 10:24:36 27566 [Note] Start semi-sync binlog_dump to slave (server_id: 601), pos(, 4)
2015-09-24 10:27:36 27566 [Note] Semi-sync replication initialized for transactions.
2015-09-24 10:27:36 27566 [Note] Semi-sync replication enabled on the master.
mysqld: /mnt/workspace/
yncMaster:
10:27:36 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Please help us make Percona Server better by reporting any
bugs at http://
key_buffer_
read_buffer_
max_used_
max_threads=4098
thread_count=17
connection_count=15
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7ecb9ec13000
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7ecb60973870 thread_stack 0x40000
/usr/sbin/
/usr/sbin/
/lib64/
/lib64/
/lib64/
/lib64/
/lib64/
/usr/lib64/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/lib64/
/lib64/
Please note that this was happened on heavy loaded MySQL instance. On less busy server everything worked as expected.
Changed in percona-server: | |
status: | Incomplete → New |
tags: | added: upstream |
Unable to reproduce this with 5.6.26. Can you provide the my.cnf files and full error log?
root@desktop:~# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 39
Server version: 5.6.26-74.0-log Percona Server (GPL), Release 74.0, Revision 32f8dfd
Copyright (c) 2009-2015 Percona LLC and/or its affiliates
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show plugins; ------- ------- ------- --+---- ------+ ------- ------- ------+ ------- ------- ------+ ------- --+ ------- ------- ------- --+---- ------+ ------- ------- ------+ ------- ------- ------+ ------- --+ sync_master | ACTIVE | REPLICATION | semisync_master.so | GPL | ------- ------- ------- --+---- ------+ ------- ------- ------+ ------- ------- ------+ ------- --+
+------
| Name | Status | Type | Library | License |
+------
| binlog | ACTIVE | STORAGE ENGINE | NULL | GPL |
...
..
| rpl_semi_
| rpl_semi_sync_slave | ACTIVE | REPLICATION | semisync_slave.so | GPL |
+------
51 rows in set (0.01 sec)
mysql> show global variables like 'rpl_semi_ sync_master_ enabled' ; ------- ------- ------- ---+--- ----+ ------- ------- ------- ---+--- ----+ sync_master_ enabled | OFF | ------- ------- ------- ---+--- ----+
+------
| Variable_name | Value |
+------
| rpl_semi_
+------
1 row in set (0.01 sec)
mysql> SET GLOBAL rpl_semi_ sync_master_ enabled = 1;
Query OK, 0 rows affected (0.01 sec)
mysql> show global variables like 'rpl_semi_ sync_master_ enabled' ; ------- ------- ------- ---+--- ----+ ------- ------- ------- ---+--- ----+ sync_master_ enabled | ON | ------- ------- ------- ---+--- ----+
+------
| Variable_name | Value |
+------
| rpl_semi_
+------
1 row in set (0.00 sec)
mysql> show status like '%semi%'; ------- ------- ------- ------- ------- ---+--- ----+ ------- ------- ------- ------- ------- ---+--- ----+ sync_master_ clients | 0 | sync_master_ net_avg_ wait_time | 0 | sync_master_ net_wait_ time | 0 | sync_master_ net_waits | 0 | sync_master_ no_times | 0 | sync_master_ no_tx | 0 | sync_master_ status | ON | sync_master_ timefunc_ failures | 0 | sync_master_ tx_avg_ wait_time | 0 | sync_master_ tx_wait_ time | 0 | sync_master_ tx_waits | 0 | sync_master_ wait_pos_ backtraverse | 0 | sync_master_ wait_sessions | 0 | sync_master_ yes_tx | 0 | sync_slave_ status | OFF | ------- ------- ------- ------- ------- ---+--- ----+
+------
| Variable_name | Value |
+------
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
| Rpl_semi_
+------
15 rows in set (0.01 sec)
mysql> show global vari...