Thanks to visit codestin.com
Credit goes to github.com

Skip to content

get(), pop(), popitem(), and setdefault() are not thread-safe #99

@crusaderky

Description

@crusaderky

#92 left a few important methods of MutableMapping prone to race conditions.

get() may or may not be thread-safe depending on the implementation details in collections.abc.
pop(), popitem() and setdefault() are definitely not thread-safe at the moment of writing.

Worth noting that this does not impact dask/distributed; the exclusion of their usage is enforced by the distributed.spill.AsyncBufferProto API contract.

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