Skip to content

Concurrent save_logical_snp_obj and create_snapshot. #190

@alesapin

Description

@alesapin

Hi! Seems like it's possible that NuRaft will concurrently run both methods (gdb trace https://gist.github.com/alesapin/973313f4d89f76634b4b1dd7e653e8ff). My code was node ready for this and I've got a deadlock :)

Is it expected behavior? Of course, I'll fix my code, but maybe it would be simpler to manage this on the NuRaft side? Both create and save snapshot methods write data to disk. In my case, it's not a problem, but I can imagine cases when it possibly can be painful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    todo-backlogAn issue to be addressed in the future

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions