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

Limit tmp file usage by online alter

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 11.8
    • 11.8
    • None
    • None

    Description

      MDEV-9101 Introduced a way to track and limit files created by IO_CACHE

      Our docs describe its usage.

      It's rather expected for online alter to follow them as well and reflect the values in status vars and be guided by system vars of that feature.

      In the following scenario, alter table is expected to fail:

      set global max_tmp_total_space_usage = 65536*5;
      create table t (x int) engine=innodb;
      set debug_sync= 'alter_table_copy_end SIGNAL ended WAIT_FOR end';
      insert t select * from seq_1_to_50000;
      --send
      alter table t add y int, lock=none, algorithm=copy;
       
      --connect (con2, localhost, root,,)
      set debug_sync= 'now WAIT_FOR ended';
      start transaction ;
      update t set x = x + 200;
      commit;
      set debug_sync= 'now SIGNAL end';
      --connection default
      --reap
      

      After it's done, it should be documented in the ALTER TABLE/Online schema change topics

      Attachments

        Issue Links

          Activity

            People

              nikitamalyavin Nikita Malyavin
              nikitamalyavin Nikita Malyavin
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.