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

Unexpected ER_TABLE_NOT_LOCKED_FOR_WRITE on DDL on table under WRITE CONCURRENT lock

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 5.5, 10.0, 10.1, 10.2, 10.3, 10.4
    • 10.4
    • Locking
    • None

    Description

      CREATE TABLE t1 (a INT);
      LOCK TABLE t1 WRITE CONCURRENT;
      ALTER TABLE t1;
       
      # Cleanup
      UNLOCK TABLES;
      DROP TABLE t1;
      

      mysqltest: At line 3: query 'ALTER TABLE t1' failed: 1099: Table 't1' was locked with a READ lock and can't be updated
      

      I don't know if DDL under this kind of lock is supposed to be allowed or not. But if it is prohibited, it should be documented. Besides, it might deserve a better error message.

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.