Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.5, 10.6, 10.6.10, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL)
-
None
-
query_cache_type = 1
query_cache_size = 64M
CentOS 7
Almalinux 8
Description
Hi,
With MariaDB 10.6 ( no matter of the subversion but tested mostly with 10.6.10 ) when particular query cache is present you are unable to drop database.
You will need the files all.sql and source_db_schema.sql which are attached to this task.
Then just execute from bash console:
mysql -e "create database source_db" |
|
|
|
mysql source_db < source_db_schema.sql
|
|
mysql -e 'RESET QUERY CACHE'; |
|
mysql -e "create database destination_db" ; mysqldump source_db | mysql destination_db |
|
mysql 'source_db' -e "select option_name from VbVoptions;" ; |
|
|
|
mysql destination_db < all.sql;
|
|
mysql -e "drop database destination_db ;" |
|
echo "drop successfully" |
In summary if specific query cache is present, you are unable to drop database and it just hangs (MariaDB uses 100% cpu) and no restart ( without "kill -9" ) can be performed .
Attachments
Issue Links
- is duplicated by
-
MDEV-23527 mariadb-10.5 hangs on "query cache lock" on DROP DATABASE
- Closed
-
MDEV-25023 MariaDB 10.5 - DROP DATABASE locked
- Closed