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]: TestTxnManager1 relies on sleeps for commit ordering #28709
The failure is intermittent; this command is a stress reproduction target, not a guaranteed reproducer.
Additional information
The test uses time.Sleep(100ms) in txn1's prepare callback and time.Sleep(10ms) in a competing goroutine. These sleeps do not establish a happens-before relationship. In the failed run, the waiter returned and appended step 3 before the prepare callback appended step 2.
PR #28499 changes unary-minus planning/execution and has no diff in this package or test relative to main. A fix should use deterministic channels/barriers around the transaction state transition instead of increasing sleeps, retrying the assertion, or accepting both orders.
Activity
test(txn): make commit ordering deterministic (#28714)
test(txn): make commit ordering deterministic (matrixorigin#28714)
test(txn): make commit ordering deterministic (matrixorigin#28714)
test(txn): make commit ordering deterministic (matrixorigin#28714)