Skip to content
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

Message duplication and reordering causes violation of causal consistency #3

Open
pfons opened this issue Apr 22, 2016 · 1 comment

Comments

@pfons
Copy link

pfons commented Apr 22, 2016

The algorithm 2 produces results that violate causal consistency when messages are duplicated and reordered by the network. This situation can occur in practice because the UDP protocol, which is used for the server-server communication, does not guarantee in-order delivery nor does it guarantee at-most once delivery.

The following steps are sufficient to reproduce the bug, with Client A, Client B and Client C running on different servers:

    Req 1: Client A: PUT key, “NA”
    Req 2: Client A: PUT key, “Request”

    Req 3: Client B: GET key -> “Request”
    Req 4: Client B: PUT key-effect, “Reply”

   <replay packets sent by Req 1>

    Req 5: Client C: GET key-effect -> “Reply” 
    Req 6: Client C: GET key -> “NA”

The steps above show that client C can see the effect event (“Reply”), produced by Client B, without seeing the cause event (“Request”), produced by Client A.

@MohsenLesani
Copy link

The semantics in the paper models reordering of messages but not message duplication. Duplication can be modularly handled by transformers presented in Verdi paper.
http://verdi.uwplse.org/verdi.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants