[MDEV-10876] MariaDB unresponsive due to long semaphore wait Created: 2016-09-23 Updated: 2023-04-12 Resolved: 2023-04-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.1.10 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Sukan | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | innodb, lock, semaphore | ||
| Environment: |
Red Hat Enterprise Linux Server release 6.6 (Santiago) |
||
| Description |
|
MariaDB was responsive for a long time, queries are in the struck state. Even killing queries is not helping as it is in the killed state for such a long time. Forcefully killed mysqld, but post restart issue still persists. These errors are logged in errorlogs InnoDB: Warning: a long semaphore wait: --Thread 139365758682880 has waited at lock0lock.cc line 7620 for 0.0000 seconds the semaphore: |
| Comments |
| Comment by Elena Stepanova [ 2016-09-26 ] | ||
|
Are you really running 10.1.10? There have been many fixes since then, including some for InnoDB. By the nature of the problem, it's nearly impossible to say whether this particular one was fixed, but there are some chances. Passing to jplindst for his collection of long semaphore waits, just in case. | ||
| Comment by Sukan [ 2016-09-30 ] | ||
|
Yes @Elena. we are running with 10.1.10-MariaDB-log. MariaDB [(none)]> select @@version;
---------------------
--------------------- Waiting to hear more from @Jan Lindstrom. | ||
| Comment by Jan Lindström (Inactive) [ 2016-09-30 ] | ||
|
Hi, can you provide full unedited error log, my.cnf, output from show processlist when stuck, and attach a debugger and provide output from thread apply all bt ? Note that 10.1.10 is not safe for production. | ||
| Comment by Sukan [ 2016-09-30 ] | ||
|
Hi Jan, Could you let me know the reason for saying that 10.1.10 is not safe for prod. | ||
| Comment by Jan Lindström (Inactive) [ 2016-09-30 ] | ||
|
https://mariadb.org/mariadb-server-versions-remote-root-code-execution-vulnerability-cve-2016-6662/ And if you use encryption, there has been a lot of fixes. | ||
| Comment by Jan Lindström [ 2023-04-11 ] | ||
|
10.1 is EOL. |