Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sebdiem
Copy link

@sebdiem sebdiem commented Jul 23, 2024

I think I found a deadlock issue in the library.
I added a unit test that reproduces the issue and a potential fix.

sebdiem added 3 commits July 23, 2024 19:32
We find the same pattern with buffer_log and flush: a sync version and a
version distributed to a thread pool.
This commit harmonizes namings:
- schedule_flush_sync => flush_with_lock
- try_lock_and_do_flush_request => flush_sync
when logging and closing simultaneously the code enters a deadlock.
The previous version was prone to a deadlock (see added test in previous
commit)
@dbartenstein
Copy link

dbartenstein commented Mar 20, 2025

@sebdiem good catch! 🎣

Hi logdna! Have you abandoned the Python library?

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