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

UPSERT during ALTER-TABLE results in 'Duplicate entry' error for alter

Details

    Description

      I have a master that very frequently executes INSERT ON DUPLICATE KEY UPDATE. On a slave I executed ALTER TABLE xx row_format=COMPRESSED;, however this resulted in an error (the specific key is a UNIQUE) from the ALTER statement, which did not succeed:

      ERROR 1062 (23000): Duplicate entry 'xxx-xxx' for key 'xxx'

      I assume this is because it received an UPSERT while it was altering the table. I think this shouldn't happen as the alter-table should have a lock on the table.

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Elena Stepanova made transition -
            Open Closed
            57d 9h 10m 1
            Marko Mäkelä made transition -
            Closed Stalled
            1315d 16h 50m 1
            Thirunarayanan Balathandayuthapani made transition -
            Stalled In Progress
            13d 3h 34m 2
            Thirunarayanan Balathandayuthapani made transition -
            In Progress In Review
            142d 15h 17m 2
            Marko Mäkelä made transition -
            In Review Stalled
            5d 5h 8m 2
            Thirunarayanan Balathandayuthapani made transition -
            Stalled Closed
            3d 2h 47m 1

            People

              thiru Thirunarayanan Balathandayuthapani
              sjon sjon
              Votes:
              1 Vote for this issue
              Watchers:
              8 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.