Skip to content

Fix SoftReadWriteLock state lock timeout - #726

Open
Sohel2309 wants to merge 1 commit into
tox-dev:mainfrom
Sohel2309:fix-725-state-lock-timeout
Open

Fix SoftReadWriteLock state lock timeout#726
Sohel2309 wants to merge 1 commit into
tox-dev:mainfrom
Sohel2309:fix-725-state-lock-timeout

Conversation

@Sohel2309

Copy link
Copy Markdown

Fixes #725.

The internal .state lock currently uses an unbounded acquisition, so a cross-host stale marker can block a SoftReadWriteLock acquisition indefinitely even when the caller supplies a finite timeout.

This change bounds .state acquisition by the caller's deadline and avoids an unbounded cleanup wait after a timed-out acquisition.

Added deterministic regression tests covering write, read, and the writer phase-2 cleanup path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SoftReadWriteLock blocks indefinitely on an abandoned cross-host .state marker

1 participant