[MDEV-12620] set lock_wait_timeout = 1;flush tables with read lock; lock not released after timeout Created: 2017-04-28 Updated: 2017-06-16 Resolved: 2017-06-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Locking |
| Affects Version/s: | 10.0.13, 10.0, 10.1, 10.1.22, 10.2.5, 10.2 |
| Fix Version/s: | 10.1.25, 10.2.7, 10.3.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Richard Stracke | Assignee: | Sergey Vojtovich |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
probably all, tested on Centos 6 and Ubuntu Xenial. |
||
| Description |
|
Reproducing: Prepare:
Session 1:
Session 2 (execute before sleep(10) is finshed)
Checked with metadata plugin:
Even if the metadatalock from the uncommited transaction from session 1 will be released with abort session 1, commit lock and global read lock still exists. |
| Comments |
| Comment by Arnaud Adant [ 2017-05-09 ] |
|
Also occurs in MySQL 5.7.18 btw. |
| Comment by Sergey Vojtovich [ 2017-06-16 ] |
|
serg, please review fix for this bug. |