[MDEV-14872] rocksdb fails to load Created: 2018-01-05 Updated: 2020-05-18 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - RocksDB |
| Affects Version/s: | 10.2.12 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Philip orleans | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
centos 7 |
||
| Issue Links: |
|
||||||||
| Description |
|
After the update some tables that were created previously with rocksdb fail to load and the whole server fails to start. I need to remove rocksdb from the configuration and then the server starts with only innodb.
|
| Comments |
| Comment by Oren Bissick (Inactive) [ 2018-01-05 ] | ||||||||||||||||||
|
i am having this same issue on upgrading to 10.2.12. | ||||||||||||||||||
| Comment by Philip orleans [ 2018-01-05 ] | ||||||||||||||||||
|
The isue happens with existing tables of the same engine RocksDB. I converted tables from Innodb and they work fine. | ||||||||||||||||||
| Comment by Oren Bissick (Inactive) [ 2018-01-05 ] | ||||||||||||||||||
|
You converted from RocksDB to InnoDB? | ||||||||||||||||||
| Comment by Philip orleans [ 2018-01-06 ] | ||||||||||||||||||
|
No, I had a bunch of Innodb tables, and convereted them to Rocksdb. They work. But existing rocksdb tables do not. | ||||||||||||||||||
| Comment by Philip orleans [ 2018-01-06 ] | ||||||||||||||||||
|
I need some help urgent. I want to go back to 10.2.11 and convert all my tables to innodb, upgrade and then convert the tables to the new version of rocksdb. How do I revert MaraDB to the version before the current one? I am at a loss about that. This will solve my problem. | ||||||||||||||||||
| Comment by Daniel Black [ 2018-01-06 ] | ||||||||||||||||||
|
https://mariadb.com/kb/en/library/yum/ has an example of creating a repository for an older version. Test upgrades and major changes on a test system and then there wouldn't be an emergency. Also don't change mysql.X tables to rocksdb, that's not supported or sane. You did catch that RocksDB is Alpha right https://github.com/MariaDB/server/blob/10.2/storage/rocksdb/ha_rocksdb.h#L1415? | ||||||||||||||||||
| Comment by Philip orleans [ 2018-01-06 ] | ||||||||||||||||||
|
I successfully installed veesion 10.2.11 and reverted all tables to innodb, then upgraded
-----------------------
but my /etc/my.cnf says =rocksdb | ||||||||||||||||||
| Comment by Elena Stepanova [ 2018-01-07 ] | ||||||||||||||||||
|
philip_38: why are your mysql.innodb_index_stats tables and such RocksDB? Did you convert them too? What's the point of that, what did you try to achieve? | ||||||||||||||||||
| Comment by Elena Stepanova [ 2018-01-07 ] | ||||||||||||||||||
|
The problem with RocksDB not being able to read tables created in previous versions is reproducible.
While RocksDB is still in Alpha stage and compatibility with previous releases are not guaranteed, I am assigning to psergey to check the reason of it and confirm that it was expected (or fix it). If it's expected, it should probably be mentioned in release notes. However, for those who got a problem with InnoDB stat tables – I don't expect anything good can come out of converting them into RocksDB; unless you know exactly why you are doing it, please don't. | ||||||||||||||||||
| Comment by Andrew Sun [ 2020-05-17 ] | ||||||||||||||||||
|
I attempted to upgrade MariaDB (and its MyRocks plugin) from 10.4.12 to 10.4.13, and I ran into this very same issue:
Setting rocksdb_validate_tables=0 as a possible workaround results in this:
This was all done on the official MariaDB Docker image (Ubuntu Bionic) with the mariadb-plugin-rocksdb also installed. It may also be relevant that I have five other column families in MyRocks besides the default column family, each with their own RocksDB options. Edit: decided to create MDEV-22609 in a separate ticket |