-
-
Notifications
You must be signed in to change notification settings - Fork 329
Bug: Using GCS or S3, FSStore doesn't pass check
and create
kwargs to FSSPEC's get_mapper()
#775
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
Comments
Yes, please fix to pass the kwargs! |
@martindurant, Created PR #814 to handle this issue. |
I am reviewing #814 and wanted to follow up with a question here. Isn't this a bug with fsspec? The fact that this works with one FSSpec implementation ( Is there an upstream fix possible. |
Let me verify that it still works as expected on a If it works as expected, I agree, we should probably put a fix in |
Can this issue be closed now? |
We should probably have tests against this behaviour to be sure, but I suspect everything now works as expected. |
I did a PR to fix this in #814, but it was closed to be handled in |
Closing as stale now that the 3.0.0 store doesn't use the same kwargs. |
I think this is a bug, if everyone agrees I can fix it and do a PR.
Minimal, reproducible code sample, a copy-pastable example if possible
Problem description
The above code fails because the FSMap created and used by FSStore did not receive the
check
andcreate
kwargs (Traceback at the bottom of the post).The
check
parameter is used to verify write access to remote stores.The
create
function creates the root object/directory if it doesn't exist, so it cancheck
for write accessThe
fsspec.mapping.get_mapper
used inzarr.storage.FSStore
expects explicit kwargs forcheck
andcreate
to sendFSMap
and passesstorage_options
aka. otherkwargs
to ONLY tourl_to_fs
(here). TheFSMap
call here expects thecheck
andcreate
kwargs, which explicitly have to be passed toget_mapper
.The issue can be circumvented by dropping the write access checking, but that may not be always the case user wants.
The ideal fix is to make
zarr.storage.FSStore
to expectcheck
andcreate
kwargs; and default to False, just likeFSMap
.Version and installation information
Please provide the following:
zarr.__version__
2.8.1numcodecs.__version__
0.7.3Traceback:
The text was updated successfully, but these errors were encountered: