[MDEV-17371] InnoDB: Warning: a long semaphore wait Created: 2018-10-04 Updated: 2020-08-07 Resolved: 2020-08-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.0.35 |
| Fix Version/s: | 10.3.3, 10.2.25, 10.1.41 |
| Type: | Bug | Priority: | Major |
| Reporter: | Albert Chin-A-Young | Assignee: | Marko Mäkelä |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
SLES 12/x86-64 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
We are running Drupal 8.5.6 on a SLES12 SP3 guest VM with MariaDB 10.0.35. We recently started encountering an issue where mysqld.log was filling up with:
Apart from the stock my.cnf we have:
We added the following from the above after we started encountering this error:
Unfortunately we do not have a stack backtrace nor can we provide a SQL command that exhibits the problem. When this error occurs, there are about 150 SQL commands listed in "SHOW PROCESSLIST". When the error occurs again, we will run the following to provide a stack backtrace and provide the "SHOW PROCESSLIST" output:
|
| Comments |
| Comment by Elena Stepanova [ 2018-11-01 ] | |
|
Any luck with the stack trace and processlist? | |
| Comment by Rudy Broersma [ 2019-03-13 ] | |
|
We are having the same issues on a server with Drupal 8.6.10 (other versions were not tested). When the issue comes up MySQL no longer responds. We can't connect to MySQL anymore and in the rare cases we can connect we cannot ask any questions (eg. show status hangs forever). We have to kill MySQLd and restart it to get it back online. This issue occurs randomly, but has occured twice in the last 48 hours. There are actually quite a few issues found on Google that relate to Drupal and semaphore wait timeouts. Also some bugreports for MariaDB as old as 2013 regarding the same issue. For example: https://drupal.stackexchange.com/questions/104880/drupal-7-database-select-query-from-cache-bootstrap-brings-server-down I have attached our error log.
| |
| Comment by Albert Chin-A-Young [ 2019-03-13 ] | |
|
We never solved this issue as we reverted to an older working configuration. However, I think they'll probably need to see a stack trace to help. Do you have a debug build of MariaDB? If so, did you try running the following:
Also, I think another possibility is to configure memcached/redis as the Drupal cache, bypassing MariaDB for caching. We have that set up but have not moved it into production yet. If this continues to be an issue for you, I would recommend trying that to determine if it works around the problem. | |
| Comment by Marko Mäkelä [ 2020-08-07 ] | |
|
I think that both these hang reports (on 10.0.35 and 10.1.37) could be duplicating |