[MDEV-32518] Test failure: ./mtr --no-reorder main.log_slow_debug main.subselect Created: 2023-10-19  Updated: 2023-11-06  Resolved: 2023-10-19

Status: Closed
Project: MariaDB Server
Component/s: Tests
Affects Version/s: 10.4, 10.5, 10.6, 10.10, 10.11, 11.0, 11.1, 11.2
Fix Version/s: 10.4.32, 10.5.23, 10.6.16, 10.10.7, 10.11.6, 11.0.4, 11.1.3, 11.2.2

Type: Bug Priority: Blocker
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: regression

Issue Links:
Duplicate
duplicates MDEV-32514 Slow log entries causing main.subsele... Closed
Relates
relates to MDEV-30820 slow log Rows_examined out of range Closed

 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.


Generated at Thu Feb 08 10:31:58 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.