[MDEV-5826] EXPLAIN acquires metadata locks Created: 2014-03-11 Updated: 2014-09-08 Resolved: 2014-09-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.0.14 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Federico Razzoli | Assignee: | Ian Gilfillan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | documentation | ||
| Description |
|
In the following test case, EXPLAIN seems to acquire MDL. Console1:
Console2:
(it's frozen) Console3:
Not sure if this is a bug. If it isn't, I suggest to document non-obvious cases when a MDL is acquired. (When doing something similar to this, I locked metadata for some minutes, in production.) |
| Comments |
| Comment by Sergei Golubchik [ 2014-03-13 ] |
|
I think it's not very surprising — EXPLAIN SELECT acquires metadata locks, just like SELECT does. Because EXPLAIN needs to know table metadata and, sometimes, data too. |
| Comment by Ian Gilfillan [ 2014-09-08 ] |
|
I have added a note about EXPLAIN acquiring MDL in the KB. |