Repository navigation
fix(storage): avoid passing asynchronous=True to sync fsspec filesystems - #4705
Open
udayraj1238 wants to merge 1 commit into
Open
udayraj1238 wants to merge 1 commit into
udayraj1238 wants to merge 1 commit into
Conversation
Closes zarr-developers#3576. Assisted-by: Antigravity
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #3576
Summary
FsspecStore.from_url(src/zarr/storage/_fsspec.py) to inspect the outermost filesystem class viafsspec.core.split_protocolandfsspec.registry.get_filesystem_classbefore passingstorage_optionstourl_to_fs."asynchronous": Truewhen the filesystem class hasasync_impl = True(usingopts.setdefault("asynchronous", True)on a shallow copy so caller options are never mutated or overwritten).SFTPFileSystem(ssh://,sftp://), which forward keyword arguments toparamiko.SSHClient.connect(), no longer receive an unexpectedasynchronous=Truekeyword argument and are wrapped with_make_async(fs)as intended.tests/test_store/test_fsspec.pycoveringssh://(paramiko.SSHClient.connectsignature verification), direct sync protocols, chained URLs (simplecache::<sync_proto>://...), explicitstorage_options={"protocol": ...}, async filesystems, and preserving explicitstorage_options={"asynchronous": False}.changes/3576.bugfix.md.For reviewers
"::"URLs vs explicitstorage_options={"protocol": ...}insideFsspecStore.from_urlso it stays aligned withfsspec's_un_chain/url_to_fsbehavior across supportedfsspecversions (>=2023.10.0).fsspec 2026.9.0,paramiko 5.1.0):pytest tests/test_store/test_fsspec.py tests/test_store/test_core.py --cov=zarr.storage._fsspec --cov-report=term-missing(197 passed, 14 skipped; all added lines in_fsspec.pycovered),ruff check,ruff format --checkon both touched files,mypy src/zarr/storage/_fsspec.py tests/test_store/test_fsspec.py(0issues),python ci/check_changelog_entries.py, andgit diff --check.Author attestation
TODO
docs/user-guide/*.mdchanges/