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

Don't require .cfg files to import InnoDB tablespaces

Details

    Description

      FLUSH TABLES ... FOR EXPORT creates a .cfg file that is supposed to be copied and imported along with the .ibd file. These .cfg files are not always needed.

      However, the .cfg files are absolutely needed in some cases, such as:

      • If you want your AUTO_INCREMENT value to be populated properly on import, then you need to copy the .cfg file (MDEV-18288).
      • If you want to avoid the potential risk of server crashes, then you need to copy the .cfg file to avoid some bugs (MDEV-14342 and MDEV-20931).
      • What other cases are there?

      And the .cfg files can also be very helpful for troubleshooting in some cases, such as:

      • If the row format is different between the source server and the destination server, then you need to copy the .cfg file if you want to see a more clear error message (MDEV-15049 and MDEV-16851).

      Would it be possible to make the .cfg files completely unnecessary?

      Attachments

        Issue Links

          Activity

            marko Marko Mäkelä added a comment - - edited

            I think that this request is duplicating much of what has been already described in MDEV-11658.

            In MDEV-11658, I wrote that a change of the .ibd file format is necessary to allow secondary indexes to be safely imported without a .cfg file.

            marko Marko Mäkelä added a comment - - edited I think that this request is duplicating much of what has been already described in MDEV-11658 . In MDEV-11658 , I wrote that a change of the .ibd file format is necessary to allow secondary indexes to be safely imported without a .cfg file.

            marko,

            MDEV-15225 and this issue (MDEV-20974) seem a bit different to me. However, maybe MDEV-15225 could technically be considered a subset of this feature request.

            The description of MDEV-15225 is specifically about being able to import a tablespace created with a different mysql56_temporal_format value.

            The description of this issue (MDEV-20974) is about being able to import tablespaces without .cfg files in all cases. This seems to involve more than the secondary index changes that you mentioned in MDEV-15225. The description of this issue mentions two more kinds of changes that may be required that I know of:

            • If you want your AUTO_INCREMENT value to be populated properly on import, then you need to copy the .cfg file (MDEV-18288).
              ...
            • If the row format is different between the source server and the destination server, then you need to copy the .cfg file if you want to see a more clear error message (MDEV-15049 and MDEV-16851).

            As far as I can tell, these two cases would not be fixed by the secondary index changes mention in MDEV-15225, so it doesn't look like MDEV-15225 covers all of the changes that this issue is requesting. If we want to merge this issue with MDEV-15225, then we might need to enhance the description of MDEV-15225.

            GeoffMontee Geoff Montee (Inactive) added a comment - marko , MDEV-15225 and this issue ( MDEV-20974 ) seem a bit different to me. However, maybe MDEV-15225 could technically be considered a subset of this feature request. The description of MDEV-15225 is specifically about being able to import a tablespace created with a different mysql56_temporal_format value. The description of this issue ( MDEV-20974 ) is about being able to import tablespaces without .cfg files in all cases. This seems to involve more than the secondary index changes that you mentioned in MDEV-15225 . The description of this issue mentions two more kinds of changes that may be required that I know of: If you want your AUTO_INCREMENT value to be populated properly on import, then you need to copy the .cfg file ( MDEV-18288 ). ... If the row format is different between the source server and the destination server, then you need to copy the .cfg file if you want to see a more clear error message ( MDEV-15049 and MDEV-16851 ). As far as I can tell, these two cases would not be fixed by the secondary index changes mention in MDEV-15225 , so it doesn't look like MDEV-15225 covers all of the changes that this issue is requesting. If we want to merge this issue with MDEV-15225 , then we might need to enhance the description of MDEV-15225 .

            Closing this as a duplicate of MDEV-11658.

            GeoffMontee Geoff Montee (Inactive) added a comment - Closing this as a duplicate of MDEV-11658 .

            People

              ralf.gebhardt Ralf Gebhardt
              GeoffMontee Geoff Montee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.