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

LOCK=NONE not working when adding column

    XMLWordPrintable

Details

    Description

      I'm trying to add a column to a large table:

      ALTER TABLE `users` ADD `seen_count` int, algorithm=INPLACE, lock=NONE

      When I run this, other threads selecting a single row from this table (users) are stalled; "show processlist" indicates "Waiting for table metadata lock"

      My understanding was "algorithm=INPLACE, lock=NONE" would not lock up other threads. Or, if lock=NONE wasn't supported (though I believe it should be fine here), an error would occur.

      Attachments

        Issue Links

          Activity

            People

              greenman Ian Gilfillan
              mahemoff Michael Mahemoff
              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.