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

Improve progress report on on-line alter table

Details

    Description

      There is very limited progress report and no real progress report on FT-indexes.

      Attachments

        Issue Links

          Activity

            With MDEV-16329 replacing the InnoDB internal table rebuild, the progress reporting should be limited to ADD INDEX creating secondary indexes.

            marko Marko Mäkelä added a comment - With MDEV-16329 replacing the InnoDB internal table rebuild, the progress reporting should be limited to ADD INDEX creating secondary indexes.

            MDEV-16329 did not replace the InnoDB internal table rebuild. In MySQL 5.7 there is a test innodb.alter_table_stage_progress that would execute the following query:

            SELECT
            event_name,
            work_completed > 0,
            work_estimated > 0,
            work_completed <= work_estimated
            FROM performance_schema.events_stages_history
            WHERE event_name LIKE 'stage/innodb/alter table%'
            ORDER BY 1;
            

            This query would fail in MariaDB because there are no columns work_completed or work_estimated in the performance_schema.event_stages_history.

            There is also https://mariadb.com/kb/en/progress-reporting/ which might be worth supporting.

            marko Marko Mäkelä added a comment - MDEV-16329 did not replace the InnoDB internal table rebuild. In MySQL 5.7 there is a test innodb.alter_table_stage_progress that would execute the following query: SELECT event_name, work_completed > 0, work_estimated > 0, work_completed <= work_estimated FROM performance_schema.events_stages_history WHERE event_name LIKE 'stage/innodb/alter table%' ORDER BY 1; This query would fail in MariaDB because there are no columns work_completed or work_estimated in the performance_schema.event_stages_history . There is also https://mariadb.com/kb/en/progress-reporting/ which might be worth supporting.

            People

              marko Marko Mäkelä
              jplindst Jan Lindström (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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