Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Check consistency between frm and MyRocks data dictionary at startup #91

Closed
yoshinorim opened this issue Jul 16, 2015 · 4 comments
Closed
Assignees

Comments

@yoshinorim
Copy link

Optionally, check consistency between all frm files and all MyRocks data dictionary entries, and aborting if there is any mismatch.

@jkedgar jkedgar self-assigned this Sep 9, 2015
@jkedgar
Copy link

jkedgar commented Sep 10, 2015

I have this working to check the number of keys in the table. I thought about attempting to compare the table names, but wondered if that would run into problems when aliases were used. What other information do we store in the MyRocks data dictionary that you would like to see compared?

@yoshinorim
Copy link
Author

We store database_name.table_name in MyRocks data dictionary idx_id=0x1 (https://github.com/MySQLOnRocksDB/mysql-5.6/wiki/MyRocks-data-dictionary-format). We don't store aliases in MyRocks data dictionary.

@jkedgar
Copy link

jkedgar commented Sep 10, 2015

Okay. I'll look into the table name further. Besides these two things, what should we check the consistency of?

@yoshinorim
Copy link
Author

Sorry I missed the last comment. I think checking database_name.table_name for all tables is fine. Checking indexes will need to parse frm file itself, which will make things more complex.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants