Repository navigation
Inject the filesystem's S3 client with client= and retry_config= (GH-1363) #1378
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1e2c31f
Inject the filesystem's S3 client with client= and retry_config= (GH-…
laughingman7743 804b2f2
Ignore fsspec configuration in the client conflict check (GH-1363)
laughingman7743 fe3eb93
Narrow the pickling statement to files opened for reading (GH-1363)
laughingman7743 2224ff4
Check conflicts before the async connection's client and attribute th…
laughingman7743 380720b
Match the error of the client tests (GH-1363)
laughingman7743 ab4df45
Create the benchmark filesystems with s3_filesystem() (GH-1363)
laughingman7743 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
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.
Self-review round two (claims, existing callers, documentation reader, evidence)
Base
7fcbcc64b02f9a5efe16ec04815b4143d1a2c615, headb161e98b9843fce7984f254169cf76e68953573f. This was a full claim pass over the PR body, docstrings, docs, and commit messages.Claims checked against code and dependency source:
close()does not close the client:close()only releases_request_pool.max_workersdoes not resize a given client's pool: the client is used as is, andconfig_kwargsapplies only to a client the filesystem builds.stacklevel=3steps past_Cached.__call__. Both classes assertrecord[0].filename == __file__, and Aio emits one warning.PropertyMockofs3_client.s3.pyno longer importsConnectionat runtime: the import is now underTYPE_CHECKING.S3FileSystem(connect()), subclasses that passconnectiontosuper().__init__, and the s3fsfilesystem_classuser path all still work, with a warning.storage_options={\"connection\": ...}still works with a warning, and the release notes give the replacement.FINDINGS
docs/filesystem.mdand the PR body said that the files a client-injected filesystem opens raiseTypeErrorwhen pickled. fsspec'sAbstractBufferedFile.__reduce__raisesRuntimeErrorfor write modes before the fs is reduced, so the claim holds only for files opened for reading.Repair (9d7d8eb): the docs, the comment, and the PR body now say "opened for reading". The PR body also records the fsspec-configuration exception from round one, and states which revision the full local runs used.
Documentation reader: the related docs (
aio.md,s3fs.md,pandas.md,polars.md,usage.md) were searched for statements this change makes obsolete. The only one, theconnection=sentence inusage.md, is already updated.Evidence limits: