[MDEV-31457] main.delete_use_source fails (hangs) with view-protocol Created: 2023-06-11  Updated: 2023-09-27  Resolved: 2023-09-27

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

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Lena Startseva
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-31455 main.events_stress or events.events_s... Closed
relates to MDEV-31465 main.sum_distinct-big and main.merge-... Closed

 Description   

10.4 f5dceafd

$ perl ./mtr main.delete_use_source --view-protocol
 
main.delete_use_source 'innodb'          [ fail ]  timeout after 900 seconds
 
create table t1(c1 integer not null,c2 integer not null, key (c1))
ENGINE=InnoDB STATS_PERSISTENT=1;
create view v1 as select * from t1 where c1 in (0,1);
insert t1 select 0,seq from seq_1_to_500;
insert t1 select 1,seq from seq_1_to_100;
insert t1 select 2,seq from seq_1_to_50;
insert t1 select 3,seq from seq_1_to_20;
analyze table t1;
Table	Op	Msg_type	Msg_text
test.t1	analyze	status	OK
#
# Delete with limit (quick select - range acces)
#
start transaction;
delete from t1 where (select count(*) from t1 b where b.c1=t1.c1) = 500 limit 1;
affected rows: 1
delete from t1 where (select count(*) from t1 b where b.c1=t1.c1) = 500 limit 1;
affected rows: 0
select count(*) from v1 where c1=0;



 Comments   
Comment by Lena Startseva [ 2023-08-11 ]

Branch for review: bb-10.4-MDEV-31457-vp

Comment by Oleksandr Byelkin [ 2023-09-18 ]

OK to push

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