Shutdown impossible when handlersocket active; blocked or ignored
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
Confirmed
|
Undecided
|
Unassigned | |||
5.6 |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi,
I have 3 nodes that are mostly idle and they refuse to shutdown gracefully.
They are all 64-bit Ubuntu Trusty with version 5.5.39-25.11-816.
- /etc/init.d/mysql stop returns "fail"
- service mysql stop does the same as above
- kill -TERM is ignored
- mysqladmin shutdown just hangs until I ^C: Warning; Aborted waiting on pid file: '/var/lib/
Only kill -9 works.
This is on a small test cluster with nearly 0 load:
Uptime: 1413 Threads: 52 Questions: 777 Slow queries: 0 Opens: 53 Flush tables: 1 Open tables: 46 Queries per second avg: 0.549
mysql> SHOW VARIABLES LIKE 'thread_handling%';
+------
| Variable_name | Value |
+------
| thread_handling | one-thread-
+------
1 row in set (0.00 sec)
mysql> SHOW STATUS LIKE '%dirty%';
+------
| Variable_name | Value |
+------
| Innodb_
| Innodb_
+------
2 rows in set (0.00 sec)
There's nothing present in the log that indicates that a shutdown was requested. It's like it's being ignored or blocked.
Absolutely nothing about self-leave, innodb shutdown, etc.
I can't think of any other pertinent information.
This behavior is present across all 3 nodes.
description: | updated |
description: | updated |
This seems to have been related to handlersocket, after I commented it out in our config:
#loose_ handlersocket_ port = 9998 handlersocket_ port_wr = 9999 handlersocket_ threads = 16 handlersocket_ threads_ wr = 1
#loose_
#loose_
#loose_
all nodes can now shutdown properly.