Closed Ariznawlll closed 1 month ago
Not working on this
Not working on this
Not working on this
Not working on this
Not working on this
Not working on this
Not working on this
Working on other S-1 issue.
Not working on this.
Not working on this
这是一个count(*)问题,正常读数据没有问题。根本原因是对于聚合操作是直接读的block meta,但是对于快照读这样会有问题
这是必现方法,刷盘后结果为8,正确应该是6
drop database if exists test01;
create database test01;
use test01;
drop table if exists rs01;
create table rs01 (col1 int, col2 decimal(6), col3 varchar(30));
insert into rs01 values (1, null, 'database');
insert into rs01 values (2, 38291.32132, 'database');
insert into rs01 values (3, null, 'database management system');
insert into rs01 values (4, 10, null);
insert into rs01 values (1, -321.321, null);
insert into rs01 values (2, -1, null);
select count(*) from rs01;
drop snapshot if exists sp01;
create snapshot sp01 for account sys;
select count(*) from rs01 {snapshot = 'sp01'};
insert into rs01 values (2, -1, null);
insert into rs01 values (1, -321.321, null);
select * from rs01;
select mo_ctl('dn','flush','test01.rs01');
restore account sys from snapshot sp01;
select count(*) from rs01 {snapshot = 'sp01'};
@Ariznawlll It still exists in 1.2-dev , i 'll cherry pick the fix.
测试case
drop database if exists test01;
create database test01;
use test01;
drop table if exists rs01;
create table rs01 (col1 int, col2 decimal(6), col3 varchar(30));
insert into rs01 values (1, null, 'database');
insert into rs01 values (2, 38291.32132, 'database');
insert into rs01 values (3, null, 'database management system');
insert into rs01 values (4, 10, null);
insert into rs01 values (1, -321.321, null);
insert into rs01 values (2, -1, null);
select count(*) from rs01;
drop snapshot if exists sp01;
create snapshot sp01 for account sys;
select count(*) from rs01 {snapshot = 'sp01'};
insert into rs01 values (2, -1, null);
insert into rs01 values (1, -321.321, null);
select * from rs01;
select mo_ctl('dn','flush','test01.rs01');
restore account sys from snapshot sp01;
select count(*) from rs01 {snapshot = 'sp01'};
main commit:830d1bbf3
测试结果(执行10+次快照读):
1.2-dev commit:968c8f7d6
测试结果(执行10+次快照读):
测试通过
Hello @Ariznawlll. The bug issue in the BVT test code has not been removed,issues automatically open.
Is there an existing issue for the same bug?
Branch Name
main
Commit ID
678695151728749f36c28d8f5972758664e4c6fb
Other Environment Information
Actual Behavior
Expected Behavior
No response
Steps to Reproduce
Additional information
No response