Does Cassandra write to a node(which is up) even if Consistency cannot be met?

前端 未结 3 1087
故里飘歌
故里飘歌 2021-01-14 11:21

The below statement from Cassandra documentation is the reason for my doubt.

For example, if using a write consistency level of QUORUM with a replication factor of 3

3条回答
  •  孤独总比滥情好
    2021-01-14 12:19

    At driver level, you get an exception.

    On the nodes that the write succeeded, the data is actually written and it is going to be eventually rolled back.

    In a normal situation, you can consider that the data was not written to any of the nodes.

    From the documentation:

    If the write fails on one of the nodes but succeeds on the other, Cassandra reports a failure to replicate the write on that node. However, the replicated write that succeeds on the other node is not automatically rolled back.

提交回复
热议问题