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

LP:691601 - SHOW INNODB STATUS reports non-FK errors in the FK section

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      ------------------------
      LATEST FOREIGN KEY ERROR
      ------------------------
      InnoDB: Renaming table `mysql`.<result 2 when explaining filename '#sql-71b4_3b'> to `mysql`.`db` failed!
      InnoDB: Renaming table `mysql`.<result 2 when explaining filename '#sql-71b4_4b'> to `mysql`.`db` failed!
      InnoDB: Renaming table `mysql`.<result 2 when explaining filename '#sql-71b4_4b'> to `mysql`.`host` failed!
      InnoDB: Renaming table `mysql`.<result 2 when explaining filename '#sql-71b4_4b'> to `mysql`.`user` failed!

      You see these errors if you attempt to convert a MyISAM table in the 'mysql' database to an InnoDB table.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              swany Swany added a comment -

              Re: SHOW INNODB STATUS reports non-FK errors in the FK section
              I know that making those tables InnoDB is not supported. I assume that those types of errors can show up in the FK section under conditions other than the example I provided, if an ALTER TABLE can't complete properly.

              Show
              swany Swany added a comment - Re: SHOW INNODB STATUS reports non-FK errors in the FK section I know that making those tables InnoDB is not supported. I assume that those types of errors can show up in the FK section under conditions other than the example I provided, if an ALTER TABLE can't complete properly.
              Hide
              stewart Stewart Smith added a comment -

              Re: SHOW INNODB STATUS reports non-FK errors in the FK section
              Patch for Maria:

              $ bzr diff
              === modified file 'storage/innodb_plugin/handler/ha_innodb.cc'
              — storage/innodb_plugin/handler/ha_innodb.cc 2011-06-07 16:13:02 +0000
              +++ storage/innodb_plugin/handler/ha_innodb.cc 2011-07-05 06:53:14 +0000
              @@ -7174,16 +7174,6 @@
              error = row_rename_table_for_mysql(
              norm_from, norm_to, trx, lock_and_commit);

              • if (error != DB_SUCCESS) { - FILE* ef = dict_foreign_err_file; - - fputs("InnoDB: Renaming table ", ef); - ut_print_name(ef, trx, TRUE, norm_from); - fputs(" to ", ef); - ut_print_name(ef, trx, TRUE, norm_to); - fputs(" failed!\n", ef); - }

                -
                if (lock_and_commit) {
                row_mysql_unlock_data_dictionary(trx);

              Show
              stewart Stewart Smith added a comment - Re: SHOW INNODB STATUS reports non-FK errors in the FK section Patch for Maria: $ bzr diff === modified file 'storage/innodb_plugin/handler/ha_innodb.cc' — storage/innodb_plugin/handler/ha_innodb.cc 2011-06-07 16:13:02 +0000 +++ storage/innodb_plugin/handler/ha_innodb.cc 2011-07-05 06:53:14 +0000 @@ -7174,16 +7174,6 @@ error = row_rename_table_for_mysql( norm_from, norm_to, trx, lock_and_commit); if (error != DB_SUCCESS) { - FILE* ef = dict_foreign_err_file; - - fputs("InnoDB: Renaming table ", ef); - ut_print_name(ef, trx, TRUE, norm_from); - fputs(" to ", ef); - ut_print_name(ef, trx, TRUE, norm_to); - fputs(" failed!\n", ef); - } - if (lock_and_commit) { row_mysql_unlock_data_dictionary(trx);
              Hide
              stewart Stewart Smith added a comment -

              Re: SHOW INNODB STATUS reports non-FK errors in the FK section
              While the fix is trivial, I'd prefer for us to wait until upstream MySQL fixes this bug, as it's pretty minor and is probably not worth the maintenance for us in Percona Server.

              Show
              stewart Stewart Smith added a comment - Re: SHOW INNODB STATUS reports non-FK errors in the FK section While the fix is trivial, I'd prefer for us to wait until upstream MySQL fixes this bug, as it's pretty minor and is probably not worth the maintenance for us in Percona Server.
              Hide
              ratzpo Rasmus Johansson added a comment -

              Launchpad bug id: 691601

              Show
              ratzpo Rasmus Johansson added a comment - Launchpad bug id: 691601
              Hide
              elenst Elena Stepanova added a comment -

              Reproducible on MySQL 5.5.13, but not on the current trees, I presume it's been fixed (although the upstream bug is still open, I added a question about it).

              Show
              elenst Elena Stepanova added a comment - Reproducible on MySQL 5.5.13, but not on the current trees, I presume it's been fixed (although the upstream bug is still open, I added a question about it).
              Hide
              elenst Elena Stepanova added a comment -

              Apparently fixed in (at least) 5.5 and further

              Show
              elenst Elena Stepanova added a comment - Apparently fixed in (at least) 5.5 and further

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  swany Swany
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: