Server crashing after upgrade (semaphore wait)
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Critical
|
Laurynas Biveinis | ||
| 5.1 |
Invalid
|
Undecided
|
Unassigned | ||
| 5.5 |
Fix Released
|
Critical
|
Laurynas Biveinis | ||
Bug Description
After upgrading to the latest version (Percona-
The logs show:
--Thread 1264978240 has waited at buf0flu.c line 1896 for 271.00 seconds the semaphore:
Mutex at 0xb1b7728 '&buf_pool->mutex', lock var 1
waiters flag 1
InnoDB: Warning: a long semaphore wait:
--Thread 1322592576 has waited at trx0trx.c line 441 for 271.00 seconds the semaphore:
Mutex at 0x9cbaa48 '&kernel_mutex', lock var 1
waiters flag 1
InnoDB: ###### Starts InnoDB Monitor for 30 secs to print diagnostic info:
InnoDB: Pending preads 0, pwrites 0
InnoDB: ###### Diagnostic info printed to the standard error stream
The only thing that helps to recover is kill and restart the mysqld process..
| Changed in percona-server: | |
| importance: | Undecided → High |
I've further narrow down the cause of the semaphore lock. It happens when removing a large amount of records from an innodb table and right after that giving 'OPTIMIZE TABLE tblname' .. The server will hang.. Tested and confirmed on both master and slave (both running percona).