Skip to content

deadlock when add duplicated labels by multithreads #420

Open
@cdjingit

Description

@cdjingit

Hello, everyone,

Some labels are duplicate in our case. We add labels by multi-thread.
I found thread may lock the same mutex two times in one addPoint which lead to deadlock.
The first time to lock mutex at here: https://github.com/nmslib/hnswlib/blob/master/hnswlib/hnswalg.h#L1021
The second time to lock the same mutex at here: https://github.com/nmslib/hnswlib/blob/master/hnswlib/hnswalg.h#L185

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