[MDEV-12451] SHOW DATABASES shows #mysql50#.rocksdb Created: 2017-04-05 Updated: 2019-05-29 Resolved: 2017-12-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - RocksDB |
| Affects Version/s: | 10.2.5 |
| Fix Version/s: | 10.2.12 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Vladislav Vaintroub | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
Windows, x64 |
||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
after installing rocksdb with 'install soname 'ha_rocksdb'; and (not sure if relevant ) creating a table, "show databases" shows #mysql50#.rocksdb
|
| Comments |
| Comment by Sergei Petrunia [ 2017-04-06 ] | |
|
@wlad this may be actually expected. The testsuite specifies --ignore-db-dirs=.rocksdb option: I recall discussing it with serg: there is no way a storage engine can tell the SQL layer that "I am creating this directory in the datadir, please ignore it". So --ignore-db-dirs is the only currently available solution. | |
| Comment by Vladislav Vaintroub [ 2017-04-06 ] | |
|
I imagine, when rocksdb engine is starting up, it may update ignore-db-dirs list (opt_ignore_db_dirs variable) itself. Function push_ignored_db_dir(char *path) might be useful for that, as there is a hash, and array and what not made of opt_ignore_db_dirs | |
| Comment by KARTHIKEYAN PALANISAMY [ 2017-09-01 ] | |
|
How do I drop this database? Please someone tell me. | |
| Comment by Sergei Petrunia [ 2017-09-05 ] | |
|
p4karthikeyan, it is not really a database. If you are certain you do not have any MyRocks tables on your system, there is another way: Go to the data directory and manually delete the .rocksdb subdirectory there. | |
| Comment by KARTHIKEYAN PALANISAMY [ 2017-09-05 ] | |
|
Thank you Sergei, I deleted the directories manually. I thought thats where the data is stored in disk - so if I have RocksDB tables, I cant really delete this directory - Am I correct? | |
| Comment by Elena Stepanova [ 2017-10-22 ] | |
|
Please find a proper solution before | |
| Comment by Nicolas Payart [ 2017-11-29 ] | |
|
I encounter the same problem after activating RocksDB. One of the nasty consequence is that a mysqldump --all-databases fails with the message:
| |
| Comment by Sergei Petrunia [ 2017-12-11 ] | |
|
Fixed as part of fix for | |
| Comment by Adam Williamson [ 2019-05-29 ] | |
|
This is claimed to be 'fixed' but I'm still hitting it with MariaDB 10.3.12: [root@www duply]# mysqldump -u root --all-databases I guess my dir was created while the bad old name was still in use and there is no automatic migration? Is there a manual way I can fix this up? Thanks. |