You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: run tpcc test and then restore report Duplicate entry #16100
cerate database tpcc;
use tpcc;
create table `bmsql_history` (`hist_id` INT NOT NULL AUTO_INCREMENT,`h_c_id` INT DEFAULT NULL,`h_c_d_id` INT DEFAULT NULL,`h_c_w_id` INT DEFAULT NULL,`h_d_id` INT DEFAULT NULL,`h_w_id` INT DEFAULT NULL,`h_date` TIMESTAMP DEFAULT NULL,`h_amount` DECIMAL(6,2) DEFAULT NULL,`h_data` VARCHAR(24) DEFAULT NULL,PRIMARY KEY (`hist_id`));
Activity
YANGGMM commentedon May 14, 2024
尝试复现
恢复成功,而且数据量正确
YANGGMM commentedon May 14, 2024
用restore 报错
YANGGMM commentedon May 14, 2024
YANGGMM commentedon May 15, 2024
测试数据量最大的表restore,正常恢复
恢复后数据一切正常
YANGGMM commentedon May 15, 2024
YANGGMM commentedon May 15, 2024
--load file
tpcccust-hist.csv
jensenojs commentedon May 15, 2024
和钊哥一起看了一下, fuzzy 的table scan不应该读取上来数据, 但读上来了.
在后台SQL的执行过程中用
select count(*) from tblName试了一下, 没有读取上来数据Ariznawlll commentedon May 15, 2024
情景一:
单机测试了sysbench 点查
commit:16a954e8eaa0c37f36c1fd6cc01691511758b69f
数据量:10w
测试步骤1:
表schema:

restore结果:

测试步骤2:
表schema:

情景二:
单机执行tpcc 10-1000测试:
表schema:

12 remaining items
triump2020 commentedon May 17, 2024
compile.Run前会更新txn.snapshotWriteOffset, 导致了reader 出现了万圣节问题.qingxinhome commentedon May 22, 2024
Got it, deal with it as soon as possible
qingxinhome commentedon May 27, 2024
Positioning
qingxinhome commentedon May 29, 2024
问题原因详情已经
FixRestoreDuplicateEntry#16100.zip
确认,请参考文档
qingxinhome commentedon Jun 6, 2024
pr已提交,待合并
qingxinhome commentedon Jun 11, 2024
The issue has been resolved, please test and verify. @aressu1985 @TangxingZhou @sukki37 @volgariver6 @triump2020 @daviszhen @ouyuanning @jensenojs @YANGGMM
Ariznawlll commentedon Jun 11, 2024
commit: 09c4d95
情景1:
情景2:
情景3:
create database tpcc;
use tpcc;
建表:https://github.com/matrixorigin/mo-tpcc/blob/main/sql/tableCreates.sql
load 数据:
创建快照:create snapshot sp01 for account sys;
本地:git clone https://github.com/matrixorigin/mo-tpcc.git
执行tpcc 10-100测试:./runBenchmark props.mo
连接mo: mysql -h 127.0.0.1 -P 6001 -udump -p111
restore account sys database tpcc from snapshot sp01;

测试通过.