Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd6db0e4

Browse files
committed
Increase deadlock_timeout to 100ms in FK isolation tests
The previous value of 20ms is dangerously close to the time actuallyspent just waiting for the deadlock to happen, so on occasion it causesthe test to fail simply because the other session didn't get to runearly enough, not managing to cause the deadlock that needs to bedetected. With this new value, it's expected that most machines onnormal load will be able to pass the test.Author: Noah Misch
1 parenta0eae1a commitd6db0e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/test/isolation/specs/fk-deadlock.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ teardown
1919
}
2020

2121
session"s1"
22-
setup{BEGIN;SETdeadlock_timeout='20ms'; }
22+
setup{BEGIN;SETdeadlock_timeout='100ms'; }
2323
step"s1i"{INSERTINTOchildVALUES (1,1); }
2424
step"s1u"{UPDATEparentSETaux='bar'; }
2525
step"s1c"{COMMIT; }

‎src/test/isolation/specs/fk-deadlock2.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ teardown
2424
}
2525

2626
session"s1"
27-
setup{BEGIN;SETdeadlock_timeout='20ms'; }
27+
setup{BEGIN;SETdeadlock_timeout='100ms'; }
2828
step"s1u1"{UPDATEASETCol1=1WHEREAID=1; }
2929
step"s1u2"{UPDATEBSETCol2=1WHEREBID=2; }
3030
step"s1c"{COMMIT; }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp