Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vfs: handle concurrent directory Syncs in disk-health checking
The file-level disk-health checker requires that a file not be used concurrently, because it only supports timing a single in-flight operation at a time. Pebble did not adhere to this contract for the data directory, which it synced concurrently. This had the potential to leave a data directory Sync untimed if an in-flight Syncs' timestamp was overwritten by the completion of another Sync. In #2282 we began checking for serialized writes in `invariants` builds. This revealed these concurrent syncs in CockroachDB test failures under `-race`: cockroachdb/cockroach#96414 and cockroachdb/cockroach#96422.
- Loading branch information