Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.3.12, 5.5(EOL), 10.0(EOL), 10.1(EOL)
    • 10.1.11
    • Optimizer
    • Centos 7 x86_64
    • 10.1.11

    Description

      After I've updated my replication slave to 10.1.10 i've begun having replication problems with a query I've narrow down to a MySQL bug (https://bugs.mysql.com/bug.php?id=58081). Is this a bug?

      set names latin1;
      drop table if exists t1;
      create table t1(a int) engine=myisam;
      insert into t1 values (0),(0),(1),(0),(0);
      select count(*) from t1, t1 t2 group by insert('', t2.a, t1.a,(@@global.max_binlog_size));
      /* SQL Error (1062): Duplicate entry '107374182410737418241' for key 'group_key' */
      /* Affected rows: 5  Found rows: 0  Warnings: 1  Duration for 4 of 5 queries: 0,188 sec. */

      Attachments

        Issue Links

          Activity

            ampf Antonio Fernandes created issue -
            elenst Elena Stepanova made changes -
            Field Original Value New Value
            Description After I've updated my replication slave to 10.1.10 i've begun having replication problems with a query I've narrow down to a MySQL bug (https://bugs.mysql.com/bug.php?id=58081). Is this a bug?

            {{
            set names latin1;
            drop table if exists t1;
            create table t1(a int) engine=myisam;
            insert into t1 values (0),(0),(1),(0),(0);
            select count(*) from t1, t1 t2 group by insert('', t2.a, t1.a,(@@global.max_binlog_size));
            /* SQL Error (1062): Duplicate entry '107374182410737418241' for key 'group_key' */
            /* Affected rows: 5 Found rows: 0 Warnings: 1 Duration for 4 of 5 queries: 0,188 sec. */
            }}
            After I've updated my replication slave to 10.1.10 i've begun having replication problems with a query I've narrow down to a MySQL bug (https://bugs.mysql.com/bug.php?id=58081). Is this a bug?

            {noformat}
            set names latin1;
            drop table if exists t1;
            create table t1(a int) engine=myisam;
            insert into t1 values (0),(0),(1),(0),(0);
            select count(*) from t1, t1 t2 group by insert('', t2.a, t1.a,(@@global.max_binlog_size));
            /* SQL Error (1062): Duplicate entry '107374182410737418241' for key 'group_key' */
            /* Affected rows: 5 Found rows: 0 Warnings: 1 Duration for 4 of 5 queries: 0,188 sec. */
            {noformat}

            ampf,
            It's a bug, but it's strange that you only started hitting it after upgrade, apparently it's been there for a long, long time. Possibly some defaults have changed which made it surface.


            bar, you filed it back then at MySQL, do you want to pick it up?
            It's said to have been fixed in 5.7.5.

            elenst Elena Stepanova added a comment - ampf , It's a bug, but it's strange that you only started hitting it after upgrade, apparently it's been there for a long, long time. Possibly some defaults have changed which made it surface. bar , you filed it back then at MySQL, do you want to pick it up? It's said to have been fixed in 5.7.5.
            elenst Elena Stepanova made changes -
            Component/s Optimizer [ 10200 ]
            Fix Version/s 10.1 [ 16100 ]
            Fix Version/s 10.2 [ 14601 ]
            Affects Version/s 5.3.12 [ 12000 ]
            Affects Version/s 5.5 [ 15800 ]
            Affects Version/s 10.0 [ 16000 ]
            Affects Version/s 10.1 [ 16100 ]
            Affects Version/s 10.1.10 [ 20402 ]
            Assignee Alexander Barkov [ bar ]
            Labels upstream-fixed
            elenst Elena Stepanova made changes -
            Status Open [ 1 ] Confirmed [ 10101 ]
            elenst Elena Stepanova made changes -

            Is there any workaround so that I can update MariaDB in my server?

            Best regards,
            Antonio

            ampf Antonio Fernandes added a comment - Is there any workaround so that I can update MariaDB in my server? Best regards, Antonio
            ratzpo Rasmus Johansson (Inactive) made changes -
            Sprint 10.1.11 [ 30 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Rank Ranked lower

            The problem is also repeatable with other engines, e.g. HEAP and INNODB.

            bar Alexander Barkov added a comment - The problem is also repeatable with other engines, e.g. HEAP and INNODB.
            bar Alexander Barkov made changes -
            Status Confirmed [ 10101 ] In Progress [ 3 ]
            bar Alexander Barkov made changes -
            Assignee Alexander Barkov [ bar ] Sergei Golubchik [ serg ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Alexander Barkov [ bar ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            bar Alexander Barkov made changes -
            Fix Version/s 10.1.11 [ 21202 ]
            Fix Version/s 10.1 [ 16100 ]
            Fix Version/s 10.2 [ 14601 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            ampf Antonio Fernandes made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 73330 ] MariaDB v4 [ 149943 ]

            People

              bar Alexander Barkov
              ampf Antonio Fernandes
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.