Fix test 01172_transaction_counters

This commit is contained in:
Alexey Milovidov 2024-08-12 07:19:54 +02:00
parent 0b1887eb65
commit 6016dc96aa
3 changed files with 23 additions and 23 deletions

View File

@ -0,0 +1 @@
../../../tests/config/config.d/transactions.xml

View File

@ -16,25 +16,25 @@
7 all_3_3_0 (0,0,'00000000-0000-0000-0000-000000000000') 0
7 all_4_4_0 (0,0,'00000000-0000-0000-0000-000000000000') 0
8 1
1 1 AddPart 1 1 1 1 all_1_1_0
2 1 Begin 1 1 1 1
2 1 AddPart 1 1 1 1 all_2_2_0
2 1 Rollback 1 1 1 1
3 1 Begin 1 1 1 1
3 1 AddPart 1 1 1 1 all_3_3_0
3 1 Commit 1 1 1 0
1 1 LockPart 1 1 1 1 all_2_2_0
4 1 Begin 1 1 1 1
4 1 AddPart 1 1 1 1 all_4_4_0
4 1 Commit 1 1 1 0
5 1 Begin 1 1 1 1
5 1 AddPart 1 1 1 1 all_5_5_0
5 1 LockPart 1 1 1 1 all_1_1_0
5 1 LockPart 1 1 1 1 all_3_3_0
5 1 LockPart 1 1 1 1 all_4_4_0
5 1 LockPart 1 1 1 1 all_5_5_0
5 1 UnlockPart 1 1 1 1 all_1_1_0
5 1 UnlockPart 1 1 1 1 all_3_3_0
5 1 UnlockPart 1 1 1 1 all_4_4_0
5 1 UnlockPart 1 1 1 1 all_5_5_0
5 1 Rollback 1 1 1 1
1 AddPart 1 1 1 1 all_1_1_0
2 Begin 1 1 1 1
2 AddPart 1 1 1 1 all_2_2_0
2 Rollback 1 1 1 1
3 Begin 1 1 1 1
3 AddPart 1 1 1 1 all_3_3_0
3 Commit 1 1 1 0
1 LockPart 1 1 1 1 all_2_2_0
4 Begin 1 1 1 1
4 AddPart 1 1 1 1 all_4_4_0
4 Commit 1 1 1 0
5 Begin 1 1 1 1
5 AddPart 1 1 1 1 all_5_5_0
5 LockPart 1 1 1 1 all_1_1_0
5 LockPart 1 1 1 1 all_3_3_0
5 LockPart 1 1 1 1 all_4_4_0
5 LockPart 1 1 1 1 all_5_5_0
5 UnlockPart 1 1 1 1 all_1_1_0
5 UnlockPart 1 1 1 1 all_3_3_0
5 UnlockPart 1 1 1 1 all_4_4_0
5 UnlockPart 1 1 1 1 all_5_5_0
5 Rollback 1 1 1 1

View File

@ -42,7 +42,6 @@ rollback;
system flush logs;
select indexOf((select arraySort(groupUniqArray(tid)) from system.transactions_info_log where database=currentDatabase() and table='txn_counters'), tid),
(toDecimal64(now64(6), 6) - toDecimal64(event_time, 6)) < 100,
type,
thread_id!=0,
length(query_id)=length(queryID()) or type='Commit' and query_id='', -- ignore fault injection after commit