-
Notifications
You must be signed in to change notification settings - Fork 285
Concurrent save_logical_snp_obj and create_snapshot. #190
Copy link
Copy link
Open
Labels
todo-backlogAn issue to be addressed in the futureAn issue to be addressed in the future
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
todo-backlogAn issue to be addressed in the futureAn issue to be addressed in the future