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

Spider tests failing in asan/valgrind builds

Details

    Description

      Caused by the MDEV-30014 patch, but not reproducible in 10.5 branch containing the same patch e.g. at 9f7da106c2c5dd9f48f8fcf40823a9d4fd655298

      e.g. https://buildbot.mariadb.org/#/builders/551/builds/8139

      [amd64-ubuntu-2204-valgrind | failed test (failure)]
      rpl.create_or_replace_mix
      spider/bugfix.checksum_table_with_quick_mode_3
      spider/bugfix.cp932_column
      spider/bugfix.delete_with_float_column_mariadb
      spider/bugfix.delete_with_float_column_mysql
      spider/bugfix.gbh_outer_fields_in_join
      spider/bugfix.group_by_order_by_limit
      spider/bugfix.mdev_19866
      spider/bugfix.mdev_20100
      spider/bugfix.mdev_20502
      spider/bugfix.mdev_21884
      spider/bugfix.mdev_24020
      spider/bugfix.mdev_24343
      spider/bugfix.mdev_24517
      spider/bugfix.mdev_24523
      spider/bugfix.mdev_26013
      spider/bugfix.mdev_26544
      spider/bugfix.mdev_28856
      spider/bugfix.mdev_29163
      spider/bugfix.mdev_31338
      

      Seems to be caused by

      [Revision 0381197855c58e339ab5034b871ea9c0c2d61522]
      Author: Yuchen Pei <ycp@mariadb.com>
      Date: 2023-11-17 Fri 11:48:50 AEDT
       
      MDEV-30014 Spider should not second guess server when locking / unlocking
      

      Attachments

        Issue Links

          Activity

            ycp Yuchen Pei created issue -
            ycp Yuchen Pei made changes -
            Field Original Value New Value
            ycp Yuchen Pei made changes -
            Description https://buildbot.mariadb.org/#/builders/551/builds/8139
            {noformat}
            [amd64-ubuntu-2204-valgrind | failed test (failure)]
            rpl.create_or_replace_mix
            spider/bugfix.checksum_table_with_quick_mode_3
            spider/bugfix.cp932_column
            spider/bugfix.delete_with_float_column_mariadb
            spider/bugfix.delete_with_float_column_mysql
            spider/bugfix.gbh_outer_fields_in_join
            spider/bugfix.group_by_order_by_limit
            spider/bugfix.mdev_19866
            spider/bugfix.mdev_20100
            spider/bugfix.mdev_20502
            spider/bugfix.mdev_21884
            spider/bugfix.mdev_24020
            spider/bugfix.mdev_24343
            spider/bugfix.mdev_24517
            spider/bugfix.mdev_24523
            spider/bugfix.mdev_26013
            spider/bugfix.mdev_26544
            spider/bugfix.mdev_28856
            spider/bugfix.mdev_29163
            spider/bugfix.mdev_31338
            {noformat}

            Seems to be caused by
            {noformat}
            [Revision 0381197855c58e339ab5034b871ea9c0c2d61522]
            Author: Yuchen Pei <ycp@mariadb.com>
            Date: 2023-11-17 Fri 11:48:50 AEDT

            MDEV-30014 Spider should not second guess server when locking / unlocking
            {noformat}
            e.g. https://buildbot.mariadb.org/#/builders/551/builds/8139
            {noformat}
            [amd64-ubuntu-2204-valgrind | failed test (failure)]
            rpl.create_or_replace_mix
            spider/bugfix.checksum_table_with_quick_mode_3
            spider/bugfix.cp932_column
            spider/bugfix.delete_with_float_column_mariadb
            spider/bugfix.delete_with_float_column_mysql
            spider/bugfix.gbh_outer_fields_in_join
            spider/bugfix.group_by_order_by_limit
            spider/bugfix.mdev_19866
            spider/bugfix.mdev_20100
            spider/bugfix.mdev_20502
            spider/bugfix.mdev_21884
            spider/bugfix.mdev_24020
            spider/bugfix.mdev_24343
            spider/bugfix.mdev_24517
            spider/bugfix.mdev_24523
            spider/bugfix.mdev_26013
            spider/bugfix.mdev_26544
            spider/bugfix.mdev_28856
            spider/bugfix.mdev_29163
            spider/bugfix.mdev_31338
            {noformat}

            Seems to be caused by
            {noformat}
            [Revision 0381197855c58e339ab5034b871ea9c0c2d61522]
            Author: Yuchen Pei <ycp@mariadb.com>
            Date: 2023-11-17 Fri 11:48:50 AEDT

            MDEV-30014 Spider should not second guess server when locking / unlocking
            {noformat}
            ycp Yuchen Pei made changes -
            ycp Yuchen Pei made changes -
            ycp Yuchen Pei made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            ycp Yuchen Pei made changes -
            Summary Spider tests failing in amd64-ubuntu-2204-valgrind Spider tests failing in asan/valgrind builds
            ycp Yuchen Pei made changes -
            Fix Version/s 10.4 [ 22408 ]
            ycp Yuchen Pei made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            ycp Yuchen Pei made changes -
            Affects Version/s 10.4 [ 22408 ]
            ycp Yuchen Pei made changes -
            Description e.g. https://buildbot.mariadb.org/#/builders/551/builds/8139
            {noformat}
            [amd64-ubuntu-2204-valgrind | failed test (failure)]
            rpl.create_or_replace_mix
            spider/bugfix.checksum_table_with_quick_mode_3
            spider/bugfix.cp932_column
            spider/bugfix.delete_with_float_column_mariadb
            spider/bugfix.delete_with_float_column_mysql
            spider/bugfix.gbh_outer_fields_in_join
            spider/bugfix.group_by_order_by_limit
            spider/bugfix.mdev_19866
            spider/bugfix.mdev_20100
            spider/bugfix.mdev_20502
            spider/bugfix.mdev_21884
            spider/bugfix.mdev_24020
            spider/bugfix.mdev_24343
            spider/bugfix.mdev_24517
            spider/bugfix.mdev_24523
            spider/bugfix.mdev_26013
            spider/bugfix.mdev_26544
            spider/bugfix.mdev_28856
            spider/bugfix.mdev_29163
            spider/bugfix.mdev_31338
            {noformat}

            Seems to be caused by
            {noformat}
            [Revision 0381197855c58e339ab5034b871ea9c0c2d61522]
            Author: Yuchen Pei <ycp@mariadb.com>
            Date: 2023-11-17 Fri 11:48:50 AEDT

            MDEV-30014 Spider should not second guess server when locking / unlocking
            {noformat}
            Caused by the MDEV-30014 patch, but not reproducible in 10.5 branch containing the same patch e.g. at 9f7da106c2c5dd9f48f8fcf40823a9d4fd655298

            e.g. https://buildbot.mariadb.org/#/builders/551/builds/8139
            {noformat}
            [amd64-ubuntu-2204-valgrind | failed test (failure)]
            rpl.create_or_replace_mix
            spider/bugfix.checksum_table_with_quick_mode_3
            spider/bugfix.cp932_column
            spider/bugfix.delete_with_float_column_mariadb
            spider/bugfix.delete_with_float_column_mysql
            spider/bugfix.gbh_outer_fields_in_join
            spider/bugfix.group_by_order_by_limit
            spider/bugfix.mdev_19866
            spider/bugfix.mdev_20100
            spider/bugfix.mdev_20502
            spider/bugfix.mdev_21884
            spider/bugfix.mdev_24020
            spider/bugfix.mdev_24343
            spider/bugfix.mdev_24517
            spider/bugfix.mdev_24523
            spider/bugfix.mdev_26013
            spider/bugfix.mdev_26544
            spider/bugfix.mdev_28856
            spider/bugfix.mdev_29163
            spider/bugfix.mdev_31338
            {noformat}

            Seems to be caused by
            {noformat}
            [Revision 0381197855c58e339ab5034b871ea9c0c2d61522]
            Author: Yuchen Pei <ycp@mariadb.com>
            Date: 2023-11-17 Fri 11:48:50 AEDT

            MDEV-30014 Spider should not second guess server when locking / unlocking
            {noformat}
            ycp Yuchen Pei made changes -
            Labels regression-10.4
            ycp Yuchen Pei added a comment -

            Hi holyfoot, ptal thanks

            upstream/bb-10.4-mdev-32849 3cd27d5d418f7e70768c20e0f2067a3893b0e3ad
            MDEV-32849 Spider: check if any table is actually locked when unlocking
             
            This avoids the scenario in MDEV-32849, when the unlock happens after
            the connection has been freed, say in rollback. This is done in 10.5+
            after the commit a26700cca579926cddf9a48c45f13b32785746bb.
             
            It may or may not prevent potential other scenarios where spider has
            locked something, then for some reason the statement needs to be
            rolled back and spider frees the connection, and then spider proceeds
            to use the freed connection. But at least we fix the regression
            introduced by MDEV-30014 to 10.4 and bring 10.4 closer in parity with
            10.5+.
            

            ycp Yuchen Pei added a comment - Hi holyfoot , ptal thanks upstream/bb-10.4-mdev-32849 3cd27d5d418f7e70768c20e0f2067a3893b0e3ad MDEV-32849 Spider: check if any table is actually locked when unlocking   This avoids the scenario in MDEV-32849, when the unlock happens after the connection has been freed, say in rollback. This is done in 10.5+ after the commit a26700cca579926cddf9a48c45f13b32785746bb.   It may or may not prevent potential other scenarios where spider has locked something, then for some reason the statement needs to be rolled back and spider frees the connection, and then spider proceeds to use the freed connection. But at least we fix the regression introduced by MDEV-30014 to 10.4 and bring 10.4 closer in parity with 10.5+.
            ycp Yuchen Pei made changes -
            Assignee Yuchen Pei [ JIRAUSER52627 ] Alexey Botchkov [ holyfoot ]
            Status In Progress [ 3 ] In Review [ 10002 ]

            ok to push.

            holyfoot Alexey Botchkov added a comment - ok to push.
            holyfoot Alexey Botchkov made changes -
            Assignee Alexey Botchkov [ holyfoot ] Yuchen Pei [ JIRAUSER52627 ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            ycp Yuchen Pei made changes -
            ycp Yuchen Pei made changes -
            Priority Critical [ 2 ] Blocker [ 1 ]
            ycp Yuchen Pei added a comment -

            pushed 2057820532312e2b6be5bad5abde361532f5d4c6 to 10.4.

            As mentioned before, this is a 10.4-only patch, but it should be clear when merging up because the change is already in 10.5.

            ycp Yuchen Pei added a comment - pushed 2057820532312e2b6be5bad5abde361532f5d4c6 to 10.4. As mentioned before, this is a 10.4-only patch, but it should be clear when merging up because the change is already in 10.5.
            ycp Yuchen Pei made changes -
            Fix Version/s 10.4.33 [ 29516 ]
            Fix Version/s 10.4 [ 22408 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            JIraAutomate JiraAutomate made changes -
            Fix Version/s 10.5.24 [ 29517 ]
            Fix Version/s 10.6.17 [ 29518 ]
            Fix Version/s 10.11.7 [ 29519 ]
            Fix Version/s 11.0.5 [ 29520 ]
            Fix Version/s 11.1.4 [ 29024 ]
            Fix Version/s 11.2.3 [ 29521 ]
            ycp Yuchen Pei made changes -
            Fix Version/s 11.1.4 [ 29024 ]
            Fix Version/s 10.5.24 [ 29517 ]
            Fix Version/s 10.6.17 [ 29518 ]
            Fix Version/s 10.11.7 [ 29519 ]
            Fix Version/s 11.0.5 [ 29520 ]
            Fix Version/s 11.2.3 [ 29521 ]

            People

              ycp Yuchen Pei
              ycp Yuchen Pei
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.