[MDEV-16046] All query hangs in processlist Created: 2018-04-27 Updated: 2019-02-17 Resolved: 2019-02-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.0.27 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | louis hust | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
centos6.8 x86_64, |
||
| Attachments: |
|
| Description |
|
Suddenly, all queries hang on mariadb, and can not execute normally. Attachments contains stack, processlist, err log, innodb status. From engine innodb status: We got the following information:
Free buffers 0, is it normally? And from the stack, many threads hang on select function. Is this a bug? |
| Comments |
| Comment by Elena Stepanova [ 2018-05-31 ] | ||||||||||||||||
|
This is wide, can be locking, can be innodb, can even be related to semi-sync somehow, I guess. | ||||||||||||||||
| Comment by Sergey Vojtovich [ 2018-05-31 ] | ||||||||||||||||
|
FWICS clients connect from different host. According to the "stack" most threads stuck in poll/select. Can this be due to network problem? | ||||||||||||||||
| Comment by Andrei Elkin [ 2018-05-31 ] | ||||||||||||||||
|
Who could say how handler::ha_rnd_next() ends up in calling select ():
| ||||||||||||||||
| Comment by Andrei Elkin [ 2018-05-31 ] | ||||||||||||||||
|
As to the semisync involvement, messages like
appear in the log sporadically all the time, but there was always progress. I would downvote it as the main suspect. | ||||||||||||||||
| Comment by louis hust [ 2018-06-01 ] | ||||||||||||||||
|
First i guess select() in handler::ha_rnd_next is the behavior of thread-pool, but check the configure file, not enabled thread pool. Maybe Async IO? | ||||||||||||||||
| Comment by Elena Stepanova [ 2019-01-19 ] | ||||||||||||||||
|
Are you still experiencing the problem? | ||||||||||||||||
| Comment by louis hust [ 2019-01-20 ] | ||||||||||||||||
|
hi, @elenst Not experiencing the problem. The stack file is in attachments. How to resolve it? | ||||||||||||||||
| Comment by Elena Stepanova [ 2019-01-20 ] | ||||||||||||||||
|
You would need the same exact binary, but if you're not having the problem any longer, you've probably upgraded since then. | ||||||||||||||||
| Comment by louis hust [ 2019-01-20 ] | ||||||||||||||||
|
The same exact binary means what? | ||||||||||||||||
| Comment by Elena Stepanova [ 2019-01-20 ] | ||||||||||||||||
|
The same exact mysqld binary which you used at the time when the stack trace was produced. Are you still running it? If you are, have you done something to make the problem disappear? Or was it a one-time occurrence? |