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

FORCE all partition to rebuild if any one of the partition does rebuild

Details

    Description

      During DDL, if one partition requires table rebuild and other partition doesn't need rebuild then all partition should be forced to rebuild.

      In ha_innobase::commit_inplace_alter_table() assumes that all partition does same operation

             /* Apply the changes to the data dictionary tables, for all
              partitions. */
       
              for (inplace_alter_handler_ctx** pctx = ctx_array;
                   *pctx && !fail; pctx++) {
                      ha_innobase_inplace_ctx*        ctx
                              = static_cast<ha_innobase_inplace_ctx*>(*pctx);
       
                      DBUG_ASSERT(new_clustered == ctx->need_rebuild());
       
                      fail = commit_set_autoinc(ha_alter_info, ctx, altered_table,
                                                table);
      

      Attachments

        1. workaround_MDEV-21832.patch
          5 kB
          Thirunarayanan Balathandayuthapani

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Thirunarayanan Balathandayuthapani made transition -
            Open In Progress
            19h 50m 1
            Thirunarayanan Balathandayuthapani made transition -
            Stalled In Progress
            24d 19h 43m 1
            Thirunarayanan Balathandayuthapani made transition -
            In Progress In Review
            1m 41s 2
            Marko Mäkelä made transition -
            In Review Stalled
            6d 2h 18m 2
            Marko Mäkelä made transition -
            Stalled Closed
            1h 26m 1

            People

              thiru Thirunarayanan Balathandayuthapani
              thiru Thirunarayanan Balathandayuthapani
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.