[MDEV-24225] Long semaphore wait in dict0dict.cc line 943 and semaphore wait >600 sec kill Created: 2020-11-17 Updated: 2021-10-27 Resolved: 2021-07-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, XA |
| Affects Version/s: | 10.4, 10.5, 10.6 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Run the following, in continually random SQL order, using 150 or 200 threads, perpetually:
After about 50k-500k executions, and sufficient time to hit the 600sec timeout, this leads to:
|
| Comments |
| Comment by Roel Van de Paar [ 2020-11-17 ] | |||||||||||||||||||||||||||
|
This may be related to | |||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2020-11-17 ] | |||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2020-11-17 ] | |||||||||||||||||||||||||||
|
Issue confirmed thus far on: Issue does not seem to be present in MS 5.7.32 | |||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2020-11-17 ] | |||||||||||||||||||||||||||
|
thread apply all bt added (10.5.9 dbg) | |||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2020-11-17 ] | |||||||||||||||||||||||||||
|
10.4.16 Crashes in a different way:
| |||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2020-11-17 ] | |||||||||||||||||||||||||||
|
In both MDEV-24225.txt
This is blocking (among other threads) the master task that is executing row_drop_tables_for_mysql_in_background(). Likewise, in MDEV-24225.txt It is hard to say what trips the InnoDB watchdog. There seemingly is some progress, and not everything is stuck. But, in any case, the entire "background drop table queue" is an InnoDB workaround for bugs at the storage engine layer. I think that this should be fixed by | |||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2021-07-23 ] | |||||||||||||||||||||||||||
|
Roel, is this repeatable with the latest 10.6? The broken-by-design "background drop table queue" was removed in 10.6.3. | |||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2021-07-26 ] | |||||||||||||||||||||||||||
|
Issue no longer reproducible in 10.6.3 891a927e804c5a3a582f6137c2f316ef7abb25ca (Debug + Optimized). Also tested 10.7.0 71ed8c136fa203b9b3a678a6d5cc72235ef73ef7 (Debug + Optimized), same result. Closing. Thank you marko | |||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2021-10-27 ] | |||||||||||||||||||||||||||
|
ccalender I tested 10.5.13 4eb7217ec33fef8d23f2dda0c97b442508c81b1d (Debug) and the issue is not reproducible there. marko Any idea how/why it could be fixed in 10.5? Thanks | |||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2021-10-27 ] | |||||||||||||||||||||||||||
|
If this is not easily repeatable with 10.5.12 or later releases, the explanation could be a number of fixes to page flushing. |