HF RL Explorer

wal: truncations can sometimes unexpectedly fail

wal: truncations can sometimes unexpectedly fail: a task in swe-rebench-v2.1-rl-isolated-1k: SWE-rebench V2.1 RL, isolated grading (1k subset) (Harbor dataset). The edge case is that a goroutine logs a record with index k (e.g. block persistence) and then performs a truncation at that same index…

The task

The edge case is that a goroutine logs a record with index `k` (e.g. block persistence) and then performs a truncation at that same index. If the `run` goroutine has not read and logged the record with this index, the truncation returns an `out of range` error, since the expected index has not been persisted yet.

Part of rycerzes/swe-rebench-v2.1-rl-isolated-1k.