[MDEV-28499] wordpress wp_options tables cannot be optimized Created: 2022-05-07 Updated: 2024-01-23 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.3.32 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical |
| Reporter: | turgut kalfaoglu | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | optimizer | ||
| Environment: |
Alma Linux |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
When I do an: on my hosting site, the optimization/repair hangs on many databases on the wordpress options table. This happens in about a dozen of the 300 databases that are being optimized. But prevents all other databases from being optimized, as the mysqlcheck gets stuck at these tables.
no warnings are shown, and SHOW WARNINGS shows nothing, nothing in the logs. If the --optimize option is removed, it does NOT hang. The timing is enormous as the databases reside on SSD drive. |
| Comments |
| Comment by Elena Stepanova [ 2022-07-25 ] |
|
Do you use MyISAM or Aria for wp tables? |
| Comment by turgut kalfaoglu [ 2022-07-26 ] |
|
Hello. I am using MyISAM for all AFAIK. I will attach the global variables. |
| Comment by Michael Widenius [ 2024-01-23 ] |
|
Looking at the process list, it shows that the problem is that REPAIR is not able to lock the table exclusively (as progress is 0.00). Another possible reason is that some disk is full and MariaDB is waiting for someone to free space. |