[MDEV-13510] main.delete_use_source fails in buildbot and outside with wrong plan Created: 2017-08-12  Updated: 2017-08-25  Resolved: 2017-08-20

Status: Closed
Project: MariaDB Server
Component/s: Tests
Affects Version/s: 10.3
Fix Version/s: 10.3.1

Type: Bug Priority: Blocker
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-13429 main.delete_use_source fails sporadic... Closed

 Description   

http://buildbot.askmonty.org/buildbot/builders/kvm-deb-jessie-amd64/builds/2583/steps/mtr/logs/stdio

main.delete_use_source 'innodb'          w1 [ fail ]
        Test ended at 2017-07-08 01:42:52
 
CURRENT_TEST: main.delete_use_source
--- /usr/local/mariadb-10.2.7-linux-x86_64/mysql-test/r/delete_use_source.result	2017-07-07 23:42:11.000000000 +0300
+++ /usr/local/mariadb-10.2.7-linux-x86_64/mysql-test/r/delete_use_source.reject	2017-07-08 01:42:52.427051960 +0300
@@ -44,8 +44,8 @@
 start transaction;
 explain delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 limit 1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	c1	c1	4	NULL	550	Using where
-2	DEPENDENT SUBQUERY	b	ref	c1	c1	4	test.t1.c1	82	Using index
+1	PRIMARY	t1	ALL	c1	NULL	NULL	NULL	472	Using where
+2	DEPENDENT SUBQUERY	b	ref	c1	c1	4	test.t1.c1	113	Using index
 delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 limit 1;
 affected rows: 1
 delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 limit 1;
@@ -60,8 +60,8 @@
 start transaction;
 explain delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	c1	NULL	NULL	NULL	717	Using where
-2	DEPENDENT SUBQUERY	b	ref	c1	c1	4	test.t1.c1	82	Using index
+1	PRIMARY	t1	ALL	c1	NULL	NULL	NULL	472	Using where
+2	DEPENDENT SUBQUERY	b	ref	c1	c1	4	test.t1.c1	113	Using index
 delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 ;
 affected rows: 500
 select count(*) from v1 where c1=0;
 
mysqltest: Result length mismatch

The test has been failing in buildbot ever since it was pushed to bb-10.2-ext here:
https://buildbot.askmonty.org/buildbot/builders/kvm-bintar-quantal-amd64/builds/6431/steps/test/logs/stdio . As of now, there are 1263 recorded failures.

It also failed for me when I ran it locally on the current 10.3 tree.


Generated at Thu Feb 08 08:06:09 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.