-
Notifications
You must be signed in to change notification settings - Fork 8
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
put is only eventually consistent? #13
Comments
AFAIK simultaneous PUTs will result in siblings, which you resolve during GET. The default way for resolving is using last-writer-wins (LWW). Are you using this fork of Plumtree? |
not sure you're right. since you read then save in the db there is still a chance to put the metadata from 2 simultaneous put on different data: https://github.com/erlio/plumtree/blob/master/src/plumtree_metadata_manager.erl#L461 |
ie the metadata can miss some causality info. |
also to answer to your question i was thinking to use it with rocksdb. i i'm rereading the code but still not sure how the metadata can't be overwritten by the last doing a put. (simultaneous reads of the metadata but a different put) |
Well, OK, let's test it then. I guess this is approachable by Concuerror with a test spawning 2 processes that concurrently PUT? |
@ioolkos never tried it using concuerror. maybe quickcheck also |
when i read the source code of plumetrre_manager it looks that during 2 simultaneous put one can win over the second. i know that this rarely happen but is this the expected behaviour?
The text was updated successfully, but these errors were encountered: