Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6199

mysql_upgrade causes errors after MariaDB 5.5 to 10.0 upgrade

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a Bug
    • Affects Version/s: 10.0.10
    • Fix Version/s: N/A
    • Labels:
    • Environment:
      RHEL5,Linux

      Description

      Running mysql_upgrade after a 5.5 to 10.0 upgrade causes lots of notices in the errorlog (one per table), below is one example:

      2014-05-02 14:29:34 2ba01e3bb940 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
      2014-05-02 14:29:34 2ba01e3bb940 InnoDB: Error: Fetch of persistent statistics requested for table "db"."tbl" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
      

      Suggested fix:
      I reckon that the mysql system tables should be upgraded first, before any other databases.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            arjen Arjen Lentz added a comment -

            Hmm this could be an observation fail on my part - InnoDB does report these, but when I upgraded another server it already chucks the warnings before mysql_upgrade is started. So it appears to be a consequence of the InnoDB storage engine starting up. Perhaps the loading of the buffer pool? Anyhow, it looks a tad ugly and perhaps something can be tweaked.

            Show
            arjen Arjen Lentz added a comment - Hmm this could be an observation fail on my part - InnoDB does report these, but when I upgraded another server it already chucks the warnings before mysql_upgrade is started. So it appears to be a consequence of the InnoDB storage engine starting up. Perhaps the loading of the buffer pool? Anyhow, it looks a tad ugly and perhaps something can be tweaked.
            Hide
            elenst Elena Stepanova added a comment -

            I don't see the error appear on server startup (even with innodb_buffer_pool_load_at_startup=1 if that's the suspect). I do see them appear on opening tables, e.g. on a client connecting with a default database and with auto-rehash; I'm sure there are other ways why tables would be open and thus the error would occur.

            Upon table opening, the errors happen in MySQL 5.6 as well, so if it's a bug, it's an upstream one.

            However, the server error log upon upgrade before running mysql_upgrade is extremely ugly anyway, with all those "wrong structure" errors (understandably so), so I don't think additional ones from InnoDB make a big difference, especially since they tell the truth.

            Show
            elenst Elena Stepanova added a comment - I don't see the error appear on server startup (even with innodb_buffer_pool_load_at_startup=1 if that's the suspect). I do see them appear on opening tables, e.g. on a client connecting with a default database and with auto-rehash; I'm sure there are other ways why tables would be open and thus the error would occur. Upon table opening, the errors happen in MySQL 5.6 as well, so if it's a bug, it's an upstream one. However, the server error log upon upgrade before running mysql_upgrade is extremely ugly anyway, with all those "wrong structure" errors (understandably so), so I don't think additional ones from InnoDB make a big difference, especially since they tell the truth.
            Hide
            elenst Elena Stepanova added a comment -

            Closing as not a bug for now, please comment to re-open if disagree.

            Show
            elenst Elena Stepanova added a comment - Closing as not a bug for now, please comment to re-open if disagree.

              People

              • Assignee:
                Unassigned
                Reporter:
                arjen Arjen Lentz
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: