Skip to content
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

Fix SQLAlchemyMd5Cache race condition #16279

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

pprados
Copy link
Contributor

@pprados pprados commented Jan 19, 2024

If the SQLAlchemyMd5Cache is shared among multiple processes, it is possible to encounter a race condition during the cache update.

…ossible to encounter a race condition during the cache update.
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jan 19, 2024
Copy link

vercel bot commented Jan 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Feb 14, 2024 3:14am

@dosubot dosubot bot added the 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature label Jan 19, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Feb 14, 2024
@eyurtsev
Copy link
Collaborator

we can merge as soon as tests pass

@eyurtsev
Copy link
Collaborator

thanks @pprados

@baskaryan baskaryan merged commit d07db45 into langchain-ai:master Feb 14, 2024
58 checks passed
snsten pushed a commit to snsten/langchain that referenced this pull request Feb 15, 2024
…#16279)

If the SQLAlchemyMd5Cache is shared among multiple processes, it is
possible to encounter a race condition during the cache update.

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
@pprados pprados deleted the pprados/fix_sql_cache branch February 17, 2024 08:21
haydeniw pushed a commit to haydeniw/langchain that referenced this pull request Feb 27, 2024
…#16279)

If the SQLAlchemyMd5Cache is shared among multiple processes, it is
possible to encounter a race condition during the cache update.

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature lgtm PR looks good. Use to confirm that a PR is ready for merging. size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants