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 }}
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
Lock example_status_persistence_file to prevent race conditions
This introduces file locking to ExampleStatusPersister#persist to
avoid a race condition where parallel or unrelated spec runs race to
update the same file:
- read 1
- read 2
- write 1
- write 2 - write 1 is lost
Because we need to read and write the file under the same lock,
I inline #write into #persist so that dumped_statuses is called
after the file is opened/locked.
0 commit comments