Details

    Description

      While dumping large database with --single-transaction option, there is a chance, that a table will be truncated during dump, resulting 'Table definition has changed, please retry transaction' error.

      In some cases, it means that dumping database always fails, i.e. when a table, that gets often truncated, is dumped after a large table.

      In environments, where changing database layout or backup strategy is not trivial, it makes using --single-transaction problematic.

      The suggested --order-by-size option will dump tables according to their size, smaller tables first.
      --order-by-size cannot be used when one is specifying table names on the command line.

      Assuming, that truncated tables are usually small, dumping small tables first greatly reduces such errors.

      Attachments

        Issue Links

          Activity

            danblack Daniel Black created issue -
            danblack Daniel Black made changes -
            Field Original Value New Value
            monty Michael Widenius made changes -
            Summary mysqldump order by size mysqldump order by increasing size
            monty Michael Widenius made changes -
            Assignee Daniel Black [ danblack ] Michael Widenius [ monty ]
            monty Michael Widenius made changes -
            Summary mysqldump order by increasing size mysqldump --order-by-size
            monty Michael Widenius made changes -
            Description While dumping large database with --single-transaction option, there is a chance, that a table will be truncated during dump, resulting 'Table definition has changed, please retry transaction' error.

            In some cases, it means that dumping database always fails, i.e. when a table, that gets often truncated, is dumped after a large table.

            In environments, where changing database layout or backup strategy is not trivial, it makes using --single-transaction problematic.

            Assuming, that truncated tables are usually small, dumping small tables first greatly reduces such errors.
            While dumping large database with --single-transaction option, there is a chance, that a table will be truncated during dump, resulting 'Table definition has changed, please retry transaction' error.

            In some cases, it means that dumping database always fails, i.e. when a table, that gets often truncated, is dumped after a large table.

            In environments, where changing database layout or backup strategy is not trivial, it makes using --single-transaction problematic.

            The suggested --order-by-size option will dump tables according to their size, smaller tables first.
            --order-by-size cannot be used when one is specifying table names on the command line.

            Assuming, that truncated tables are usually small, dumping small tables first greatly reduces such errors.

            Pushed to 10.9 tree

            monty Michael Widenius added a comment - Pushed to 10.9 tree
            monty Michael Widenius made changes -
            issue.field.resolutiondate 2022-04-13 10:11:53.0 2022-04-13 10:11:53.367
            monty Michael Widenius made changes -
            Fix Version/s 10.9.1 [ 27114 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]

            People

              monty Michael Widenius
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.