Closed colebaileygit closed 3 months ago
Relates to https://github.com/open-feature/python-sdk/issues/96.
@colebaileygit would this be something you would be willing to help with? FYI @federicobond @gruebel @toddbaert
Thanks for reporting @colebaileygit, it's nice to have an existence proof for the thread-safety issues we knew were there.
I wrote a test that can reproduce the issue 100% of the time on my computer and implemented some locks to prevent concurrent access to the event handler dictionaries. See https://github.com/open-feature/python-sdk/pull/329
There is still quite a lot of thread-safety work to be done with other methods, particularly in the openfeature.api
module.
I think we can mark this particular issue as resolved.
I got this stack trace while running tests. I imagine it is a very rare race condition:
Can we make the handler data object safe for multi-threading?