Skip to content

SNOW-1983343 add timeout for ocsp root certs #2338

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

sfc-gh-mkubik
Copy link
Contributor

@sfc-gh-mkubik sfc-gh-mkubik commented May 27, 2025

Customers identified that ocsp root certs dictionary access may cause a deadlock when using the driver in multiple threads. We weren't able to identify the reproduction scenario so instead we agreed on introducing a parameter that allows configuring the timeout for the lock instead of waiting indefinitely.

Additionally, new parameter for OCSP revealed a problem with globally defined connection mocks in test_session_manager that got injected into unrelated tests. This was fixed by applying per-test patch instead of the global mock.

@sfc-gh-mkubik sfc-gh-mkubik changed the title Snow 1983343 add timeout for ocsp root certs SNOW-1983343 add timeout for ocsp root certs May 27, 2025
@sfc-gh-mkubik sfc-gh-mkubik added the DO_NOT_PORT_CHANGES_TO_SP Add this label when changes in this PR do not need to be port to SP connector label May 27, 2025
@sfc-gh-mkubik sfc-gh-mkubik marked this pull request as ready for review May 28, 2025 07:25
Copy link
Contributor

@sfc-gh-pbulawa sfc-gh-pbulawa left a comment

Choose a reason for hiding this comment

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

Can we have some test for the lock mechanism?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DO_NOT_PORT_CHANGES_TO_SP Add this label when changes in this PR do not need to be port to SP connector
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants