Coder Social home page Coder Social logo

Comments (8)

hermanlee avatar hermanlee commented on April 26, 2024

Comment by jkedgar
Thursday Sep 10, 2015 at 18:55 GMT


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?

from mysql-5.6.

hermanlee avatar hermanlee commented on April 26, 2024

Comment by yoshinorim
Thursday Sep 10, 2015 at 22:21 GMT


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.

from mysql-5.6.

hermanlee avatar hermanlee commented on April 26, 2024

Comment by jkedgar
Thursday Sep 10, 2015 at 22:23 GMT


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

from mysql-5.6.

hermanlee avatar hermanlee commented on April 26, 2024

Comment by yoshinorim
Thursday Sep 17, 2015 at 00:52 GMT


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.

from mysql-5.6.

hermanlee avatar hermanlee commented on April 26, 2024

Is failing the system when there are tables with .frm files but not using the rocksdb storage engine too restrictive? It seems like there could be generic uses cases for creating tables with other storage engines.

from mysql-5.6.

yoshinorim avatar yoshinorim commented on April 26, 2024

As far as it's configurable, I think failing the system at startup is ok. Creating tables with other storage engines may happen on temporary tables, but tmp tables can easily be filtered out.

from mysql-5.6.

hermanlee avatar hermanlee commented on April 26, 2024

There are also tables created using the blackhole engine though that persist across restarts. The current checks would always fail for them.

from mysql-5.6.

jkedgar avatar jkedgar commented on April 26, 2024

Fixed: https://reviews.facebook.net/D47619

from mysql-5.6.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.