Commit 5fb9f4e
kvcoord: deflake TestTxnCoordSenderRetriesAcrossEndTxn
The first subtest asserted ExpectPusheeTxnRecordNotFound, which requires
the push to find no txn record at all. However, the heartbeat loop can
race and write a PENDING txn record during CommitInBatch execution,
causing the push to find that record and fail the assertion.
Replace with the new ExpectNoTxnRecovery expectation, which verifies the
actual invariant: no STAGING record was found and no transaction recovery
was performed. This tolerates a PENDING record from the heartbeat loop
while still checking that the txn was not implicitly committed.
Fixes: #170829
Release note: None
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 980b3b2 commit 5fb9f4e
2 files changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3962 | 3962 | | |
3963 | 3963 | | |
3964 | 3964 | | |
3965 | | - | |
3966 | | - | |
3967 | | - | |
| 3965 | + | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
| 3969 | + | |
3968 | 3970 | | |
3969 | 3971 | | |
3970 | 3972 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
117 | 129 | | |
118 | 130 | | |
119 | 131 | | |
| |||
0 commit comments