Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-7499

Improve error log when MyRocks fails with rocksdb_validate_tables=1

Details

    Description

      After loading data into sysbench tables and then killing mysqld process, I am not able to start.

      MyRocks gives me the following error:

      2021-01-14T17:02:05.036938Z 0 [Warning] [MY-000000] [Server] Plugin rocksdb reported: 'AUTOINC mismatch - Index number (0, 280) found in AUTOINC but does not exist as a DDL entry'
      2021-01-14T17:02:05.037096Z 0 [ERROR] [MY-000000] [Server] Plugin rocksdb reported: 'RocksDB: Problems validating auto increment values in data dictionary, exiting'
      2021-01-14T17:02:05.037215Z 0 [ERROR] [MY-000000] [Server] Plugin rocksdb reported: 'Failed to initialize DDL manager.'
      2021-01-14T17:02:05.037362Z 0 [ERROR] [MY-010202] [Server] Plugin 'ROCKSDB' init function returned error.
      2021-01-14T17:02:05.037486Z 0 [ERROR] [MY-010734] [Server] Plugin 'ROCKSDB' registration as a STORAGE ENGINE failed.

      There is multiple problems with this.

      1. why did this happen?
      2. What table is affected?
      3. How do I recovery from this? From what I see the only way forward is to remove datadir and start from scratch

      Attachments

        Activity

          People

            przemyslaw.skibinski Przemyslaw Skibinski
            vadimtk Vadim Tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 3 days
                3d

                Smart Checklist