Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
138174: server: fix TestLogGC test r=kyle-a-wong a=kyle-a-wong This test started failing after #137069 was merged into mater. That PR introduced a change that made it so that a lock is acquired when performing the initial scan for a DELETE, over all scanned rows. As a result, a race condition was exposed in TestLogGC (specifically when the deadlock flag is set) where calling `gcSystemLog` resulted in a `TransactionRetryError: retry txn` error. This race condition is happening because thetest data being written is using timestamps in the future as opposed to the past. When attemping to GC the table, its conflict with normal writes that are happening at the same time. To fix, the test data is being written in the past, which avoids these conflicts. Fixes: #137490 Release note: None Co-authored-by: Kyle Wong <[email protected]>
- Loading branch information