Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data residue after batch delete #51761

Closed
seiya-annie opened this issue Mar 14, 2024 · 2 comments · Fixed by #51796
Closed

data residue after batch delete #51761

seiya-annie opened this issue Mar 14, 2024 · 2 comments · Fixed by #51796
Labels
severity/critical sig/sql-infra SIG: SQL Infra type/bug This issue is a bug.

Comments

@seiya-annie
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table tbl_3 ( col_11 boolean    default 0 ,col_12 enum ( 'Alice','Bob','Charlie','David' )   not null ,col_13 mediumint  unsigned not null ,col_14 set ( 'Alice','Bob','Charlie','David' )    default 'Bob' ,col_15 bit ( 60 )    default 1015141872475219995 , key idx_5 ( col_12 ) ,primary key  ( col_13 ) /*T![clustered_index] clustered */ ) charset utf8 collate utf8_bin partition by range ( col_13 ) ( partition p0 values less than (11883098), partition p1 values less than (maxvalue) );
insert into tbl_3 values ( 1,'David',13008582,'Alice',724165016357078201 );
insert into tbl_3 values ( 0,'Charlie',8123805,'Charlie',902223826218230892 );
insert into tbl_3 values ( 1,'Alice',1334229,'Bob',1072699928843391314 );    
insert into tbl_3 values ( 1,'Alice',10614014,'Alice',null );                
insert into tbl_3 values ( 1,'David',5134240,'Bob',753356488115581102 );     
insert into tbl_3 values ( 0,'Charlie',10698501,'David',726820968154347355); 
insert into tbl_3 values ( 1,'Alice',266878,'Alice',20768586171821596 ) ;    
insert into tbl_3 values ( 0,'Bob',2867906,'Charlie',80199621009313244 );    
insert into tbl_3 values ( 1,'David',13062709,'Alice',490739634559677711 ) ; 
insert into tbl_3 values ( 0,'Bob',7420870,'Charlie',437878499439721865 );   
replace into tbl_3 set col_11 = 1, col_12 = 'David', col_13 = 12109528, col_14 = 'Alice', col_15 = 476100759802849621;
replace into tbl_3 set col_11 = 1, col_12 = 'Bob', col_13 = 15018989, col_14 = 'Charlie', col_15 = 872554979340498964;

insert  into tbl_3 set col_11 = 1, col_12 = 'Charlie', col_13 = 3442269, col_14 = 'Alice', col_15 = 7514835303173184 on duplicate key update col_13 = 6181067, col_15 = 588851724475621839, col_11 = 1, col_14 = 'David', col_12 = 'David';

batch on col_13 limit 3 delete from tbl_3 where tbl_3.col_14 in ( 'Bob' ,'David' ,'Bob' ,'Charlie' ,'Charlie' ,'David' ,'Alice' ,'Alice' ,'Charlie' );

2. What did you expect to see? (Required)

after batch delete, all rows should be deleted.

3. What did you see instead (Required)

one row still exist

4. What is your TiDB version? (Required)

master

@seiya-annie seiya-annie added the type/bug This issue is a bug. label Mar 14, 2024
@seiya-annie
Copy link
Author

after #49161, the issue started to arise

@seiya-annie
Copy link
Author

fixed in #51796

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/critical sig/sql-infra SIG: SQL Infra type/bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants