-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review concepts of "document has changed", avoid race conditions #51
Comments
A note on separating out the types of reads and writes: One of the major reasons that we're migrating to incremental saves + BEC syncing is to fix deadlock conditions in our stack. I think it would be safer to do a |
I agree about the need to prevent deadlocks. In this particular issue, the problem was rather a livelock, in the sense that something that was expected to happen(sending out sync messages), did not(and it was not caused by an underlying deadlock). So it was rather the logic of the code that was wrong and produced a livelock. I don't think we should switch to using There is one potential source of deadlock I have just noted on the doc handle side of things, and it's tracked at #53. |
Thank you! I appreciate the context |
In the light of the dicussion at #21 (comment)
We may want to review the use of the
last_heads
concept insidenote_changes
(see current WIP), because it can lead to races conditions between saving and sending out sync messages or waking up change observers(seeprocess_changed_documents
.The text was updated successfully, but these errors were encountered: