Skip to content

AsyncRLock: don't swallow Lock.acquire errors #944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

robsdedude
Copy link
Member

@robsdedude robsdedude commented Jul 7, 2023

This PR addresses point 2 ("Missing error handling in _acquire_non_blocking") raised in #937.

It's not clear if or when asyncio.Lock.acquire() would raise an exception. But should it, our wrapping AsyncRLock should not silently swallow it and worse pretend the lock was successfully acquired.

Copy link
Contributor

@bigmontz bigmontz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒

@robsdedude robsdedude merged commit 141d5a0 into neo4j:5.0 Jul 10, 2023
@robsdedude robsdedude deleted the harden-non-blocking-asyncrlock-acquire branch July 10, 2023 14:28
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.

2 participants