-
Notifications
You must be signed in to change notification settings - Fork 276
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
[Bug]: The existing data can not be found during tpcc new order txn #8871
Comments
prepareStmt sql: The new order txn is: a. f. g.SELECT s_quantity, s_data, " + i. |
I've made some fix, self testing |
the but the |
repro script, the second
|
the second query, the plan builder will call the repro step:
and you will get empty result but required [1] [2] [3] |
@ouyuanning plz assign it to a suitable man. thx. |
my fault. it's a wrong analysis. |
repro step:
I guess that maybe we should deliver a txn timestamp to pick up the partitions we want? @reusee |
looking into it. |
Repro on mojo, https://github.com/matrixorigin/mojo/tree/main/go, simply run
local launch-tae-mulit-cn-tae-dn, pessimistic. |
fixed |
tracking |
@zhangxu19830126 |
so what is status? |
not working on it |
not working on this today |
not working on it |
5 similar comments
not working on it |
not working on it |
not working on it |
not working on it |
not working on it |
乐观事务下的。应该之前乐声已经修复。 悲观事务下,有发现的几个问题。 目前应该已经没有丢失问题了。辛苦QA同学协助验证。 |
fixed |
Is there an existing issue for the same bug?
Environment
Actual Behavior
tools log:
Term-00, Running Average tpmTOTAL: 210.66 Current tpmTOTAL: 1456920 Memory Usage: 44MB / 708MB ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^HTerm-00, Running Average tpmTOTAL: 210.65 Current tpmTOTAL: 1456932 Memory Usage: 44MB / 708MB ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H2023-04-04 23:00:53 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=8 S_I_ID=64375 not fount
2023-04-04 23:00:53 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=9 S_I_ID=33327 not fount
2023-04-04 23:00:53 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=2 S_I_ID=25463 not fount
2023-04-04 23:00:53 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=8 S_I_ID=41318 not fount
Term-00, Running Average tpmTOTAL: 210.66 Current tpmTOTAL: 1457028 Memory Usage: 45MB / 708MB ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H2023-04-04 23:00:54 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=6 S_I_ID=17269 not fount
2023-04-04 23:00:54 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=6 S_I_ID=66407 not fount
Term-00, Running Average tpmTOTAL: 210.66 Current tpmTOTAL: 1457088 Memory Usage: 46MB / 708MB ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H2023-04-04 23:00:54 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=6 S_I_ID=7975 not fount
2023-04-04 23:00:55 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=7 S_I_ID=8053 not fount
2023-04-04 23:00:55 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=7 S_I_ID=8053 not fount
2023-04-04 23:00:55 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=9 S_I_ID=17270 not fount
2023-04-04 23:00:55 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=8 S_I_ID=8813 not fount
2023-04-04 23:00:55 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=1 S_I_ID=49527 not fount
2023-04-04 23:00:55 FATAL jTPCCTerminal:169 - TT_PAYMENT: Unexpected SQLException on transaction execution: w-w conflict
Term-00, Running Average tpmTOTAL: 210.66 Current tpmTOTAL: 1457232 Memory Usage: 48MB / 708MB ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^HTerm-00, Running Average tpmTOTAL: 210.66 Current tpmTOTAL: 1457232 Memory Usage: 49MB / 708MB ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H2023-04-04 23:00:58 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=8 S_I_ID=57847 not fount
Term-00, Running Average tpmTOTAL: 210.66 Current tpmTOTAL: 1457244 Memory Usage: 49MB / 708MB ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^HTerm-00, Running Average tpmTOTAL: 210.66 Current tpmTOTAL: 1457256 Memory Usage: 49MB / 708MB ^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H2023-04-04 23:00:59 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=1 S_I_ID=41847 not fount
2023-04-04 23:00:59 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=1 S_I_ID=12911 not fount
2023-04-04 23:00:59 FATAL jTPCCTerminal:282 - STOCK with S_W_ID=5 S_I_ID=9070 not fount
But this data really exists in database:
Database changed
mysql> select * from bmsql_stock where S_W_ID = 5 and S_I_ID=9070;
+--------+--------+------------+-------+-------------+--------------+----------------------------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
| s_w_id | s_i_id | s_quantity | s_ytd | s_order_cnt | s_remote_cnt | s_data | s_dist_01 | s_dist_02 | s_dist_03 | s_dist_04 | s_dist_05 | s_dist_06 | s_dist_07 | s_dist_08 | s_dist_09 | s_dist_10 |
+--------+--------+------------+-------+-------------+--------------+----------------------------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
| 5 | 9070 | 46 | 41 | 9 | 0 | X8SIwg4qc2iDbtkR8cX5qvHJkv6J5UExFYsAC1Ba3OzJ | LneuMvINospnE1EpMvq7yjNp | elIQ1xUXukbxvpauCjy7KJsU | xFbwwgyjJHkhg4640OwHKc2g | AgtvWjyvfwneSvfYKERFUeQI | bcC5v7dKgX4jMHQt6Si2s3oh | JT4JoiGXf7P9y43pKhFOqd61 | IJMjA3VCDes3igI68R5uuO0h | LBqI8Y9DINu2ojAt62PW0xez | ublosq0GRWoopVkf6i5i7uE8 | Gm7hYeLekcKhSrBSeZRu5yO1 |
+--------+--------+------------+-------+-------------+--------------+----------------------------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
1 row in set (0.11 sec)
mysql> select * from bmsql_stock where S_W_ID = 1 and S_I_ID=12911;
+--------+--------+------------+-------+-------------+--------------+------------------------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
| s_w_id | s_i_id | s_quantity | s_ytd | s_order_cnt | s_remote_cnt | s_data | s_dist_01 | s_dist_02 | s_dist_03 | s_dist_04 | s_dist_05 | s_dist_06 | s_dist_07 | s_dist_08 | s_dist_09 | s_dist_10 |
+--------+--------+------------+-------+-------------+--------------+------------------------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
| 1 | 12911 | 49 | 29 | 5 | 0 | MclNeez4gp42Cx7xthrl8CGhEIZVoBiaGsxnHaSL | zTlTLtifA0Bq4OON1BItCN0i | JlJ0OmIpR6BfTuQKkUvIS3Bf | VMorZrhVB9bkO7beDuK7FWt0 | eYLS9dGtC70tNmG8my3RAwxI | M19Wwwlshr4hwS98UeEQ8zcY | yVOGmgZtr6dCsxerT1Qims9K | c1wV3AqRjRCixzwlLhMU2rrm | ZVQZjRF8B1QgVbehH9YM4SRk | YIhmlHsFzUAQkm2Cfr4nubUA | JUJnk3vXNtQnQYckPpj7vyHU |
+--------+--------+------------+-------+-------------+--------------+------------------------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+--------------------------+
1 row in set (0.11 sec)
mysql>
Expected Behavior
No response
Steps to Reproduce
1、git clone https://github.com/matrixorigin/mo-tpcc.git 2、modify props.mo ,set warehouse = 10, terminals = 10, runMins=5000 3、run ./runLoader.sh props.mo warehouse 10 filelocatioin XXXX, to generate 10 warehouse data 4、load data to mo 5、run ./runBenchmark.sh props.mo for about several hours.
Additional information
No response
The text was updated successfully, but these errors were encountered: