-
Notifications
You must be signed in to change notification settings - Fork 75
enhancement: add context management support to storages #1569
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
efectn
wants to merge
30
commits into
main
Choose a base branch
from
add-withcontext
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
e5059da
arangodb: add support for context management
efectn 58bbe46
clickhouse: add support for context management
efectn 9d7368c
dynamodb: add support for context management
efectn a01135d
etcd: add support for context management
efectn 134e774
minio: add support for context management
efectn c1e526d
mongodb: add support for context management
efectn 17ab512
mssql: add support for context management
efectn 3242f93
mysql: add support for context management
efectn a422c89
nats: add support for context management
efectn a5ea1ad
postgres: add support for context management
efectn 245dce0
redis: add support for context management
efectn d6fb931
rueidis: add support for context management
efectn 486941c
s3: add support for context management
efectn ce31f76
scylladb: add support for context management
efectn 75f5216
sqlite3: add support for context management
efectn 1b443d0
valkey: add support for context management
efectn 2192ac6
azureblob: add support for context management
efectn f03ca4e
cloudflarekv: add support for context management
efectn 634695c
cloudflarekv: make context functional for test_module
efectn 58388d3
couchbase: add support for context management
efectn d7bbc22
chore: use testcontainers properly in nats
mdelapenya f3bdd25
chore: use testcontainers properly in dynamodb
mdelapenya d1893c2
chore: use testcontainers properly in mysql
mdelapenya 371611b
chore: use testcontainers properly in postgres
mdelapenya 53b2205
chore: use testcontainers properly in mongodb
mdelapenya 0a9e0ef
neo4j: add support for context management
efectn 8dcdba4
coherence: add support for context management
efectn ba32290
fix tests
efectn 0f13ff4
Merge branch 'main' into add-withcontext
mdelapenya 74b3bd3
chore(minio): defer closing the store in test
mdelapenya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Review error handling change in ResetWithContext.
The error handling in
ResetWithContext
has been changed to return immediately on any error (lines 118 and 124). Previously, it would continue trying to delete other blobs even if some deletions failed. This is a behavior change that could impact users who expect the method to delete as many blobs as possible even if some operations fail.Also, there's a commented-out implementation (lines 111-112) that might be more efficient. Consider adding a comment explaining why the current approach was chosen over deleting the container.
📝 Committable suggestion