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

Test failure: ./mtr --no-reorder main.log_slow_debug main.subselect

    XMLWordPrintable

Details

    Description

      The following sequence of tests fails:

      ./mtr --no-reorder main.log_slow_debug main.subselect
      

      10.4 d81a1cadeb8df1510851edf64a2eb5c17e57858f

      main.log_slow_debug                      [ pass ]     75
      main.subselect                           [ fail ]
              Test ended at 2023-10-19 08:03:36
       
      CURRENT_TEST: main.subselect
      /dev/shm/10.4/client//mysqltest: Error on delete of '/dev/shm/10.4/mysql-test/var/tmp/subselect.out.file.1' (Errcode: 2 "No such file or directory")
      mysqltest: At line 5993: query 'Select 
      (Select Sum(`TestCase`.Revenue) From mysql.slow_log E           
      Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
      ) As `ControlRev`
      From 
      (Select  3 as Revenue, 4 as TemplateID) As `TestCase` 
      Group By  TestCase.Revenue, TestCase.TemplateID' failed: 1242: Subquery returns more than 1 row
       
      The result from queries just before the failure was:
      < snip >
      2	SUBQUERY	t2	ref	b	b	5	test.t1.a	2Using index
      DROP TABLE t1,t2;
      #
      # MDEV-5991: crash in Item_field::used_tables
      #
      create table t1 (c int);
      select exists(select 1 from t1 group by `c` in (select `c` from t1));
      exists(select 1 from t1 group by `c` in (select `c` from t1))
      0
      drop table t1;
      #
      # MDEV-7565: Server crash with Signal 6 (part 2)
      #
      Select 
      (Select Sum(`TestCase`.Revenue) From mysql.slow_log E           
      Where TestCase.TemplateID not in (Select 1 from mysql.slow_log where 2=2)
      ) As `ControlRev`
      From 
      (Select  3 as Revenue, 4 as TemplateID) As `TestCase` 
      Group By  TestCase.Revenue, TestCase.TemplateID;
       
      More results from queries before failure can be found in /dev/shm/10.4/mysql-test/var/log/subselect.log
       
       - saving '/dev/shm/10.4/mysql-test/var/log/main.subselect/' to '/dev/shm/10.4/mysql-test/var/log/main.subselect/'
      

      The test main.log_slow_debug was last modified by sanja in MDEV-30820.

      After I moved the test case cleanup part to the very end of the test, this sequence of tests passes.

      By coincidence, this sequence of tests is run on the mandatory staging builder amd64-ubuntu-2004-debug every time (I tried some 10 times) when merging 10.11 to 11.0. In other words, this is blocking the merge.

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.