Skip to content

File system registry is not thread safe #1334

Closed
@emfdavid

Description

@emfdavid

Is there a way good option to make the registry thread safe?

exc_info: "Traceback (most recent call last):
...
    files = fsspec.open_files(query_path)
  File "/app/megaservice/platform.mega.service.py3_image.binary.runfiles/common_deps_fsspec/site-packages/fsspec/core.py", line 282, in open_files
    fs, fs_token, paths = get_fs_token_paths(
  File "/app/megaservice/platform.mega.service.py3_image.binary.runfiles/common_deps_fsspec/site-packages/fsspec/core.py", line 594, in get_fs_token_paths
    chain = _un_chain(urlpath0, storage_options or {})
  File "/app/megaservice/platform.mega.service.py3_image.binary.runfiles/common_deps_fsspec/site-packages/fsspec/core.py", line 325, in _un_chain
    cls = get_filesystem_class(protocol)
  File "/app/megaservice/platform.mega.service.py3_image.binary.runfiles/common_deps_fsspec/site-packages/fsspec/registry.py", line 216, in get_filesystem_class
    register_implementation(protocol, _import_class(bit["class"]))
  File "/app/megaservice/platform.mega.service.py3_image.binary.runfiles/common_deps_fsspec/site-packages/fsspec/registry.py", line 48, in register_implementation
    raise ValueError(
ValueError: Name (gs) already in the registry and clobber is False"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions