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

onlineddl_vrepl suite: fix auto_increment flakyness #12246

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,26 @@ create table onlineddl_test (
id int auto_increment,
i int not null,
primary key(id)
) auto_increment=1;
) auto_increment=8;

insert into onlineddl_test values (NULL, 11);
insert into onlineddl_test values (NULL, 13);
insert into onlineddl_test values (NULL, 17);
insert into onlineddl_test values (NULL, 23);
insert into onlineddl_test values (NULL, 29);
insert into onlineddl_test values (NULL, 31);
insert into onlineddl_test values (NULL, 37);
delete from onlineddl_test where id>=5;
delete from onlineddl_test where id>=0;

drop event if exists onlineddl_test;
delimiter ;;
create event onlineddl_test
on schedule every 1 second
starts current_timestamp
ends current_timestamp + interval 60 second
on completion not preserve
enable
do
begin
insert into onlineddl_test values (NULL, 37);
delete from onlineddl_test where id>=0;
end ;;
Original file line number Diff line number Diff line change
@@ -1 +1 @@
AUTO_INCREMENT=[89]
AUTO_INCREMENT=([1-9][0-9])
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,23 @@ create table onlineddl_test (
id int auto_increment,
i int not null,
primary key(id)
) auto_increment=1;
) auto_increment=8;

insert into onlineddl_test values (NULL, 11);
insert into onlineddl_test values (NULL, 13);
insert into onlineddl_test values (NULL, 17);
insert into onlineddl_test values (NULL, 23);


drop event if exists onlineddl_test;
delimiter ;;
create event onlineddl_test
on schedule every 1 second
starts current_timestamp
ends current_timestamp + interval 60 second
on completion not preserve
enable
do
begin
insert into onlineddl_test values (NULL, 37);
end ;;
Original file line number Diff line number Diff line change
@@ -1 +1 @@
AUTO_INCREMENT=[89]
AUTO_INCREMENT=([1-9][0-9])