You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Kasper Svendsen (JIRA)" <ji...@apache.org> on 2018/11/13 10:09:01 UTC

[jira] [Created] (CASSANDRA-14887) Incorrect number of acknowlegments in WriteTimeoutException message for EACH_QUORUM writes

Kasper Svendsen created CASSANDRA-14887:
-------------------------------------------

             Summary: Incorrect number of acknowlegments in WriteTimeoutException message for EACH_QUORUM writes
                 Key: CASSANDRA-14887
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14887
             Project: Cassandra
          Issue Type: Bug
            Reporter: Kasper Svendsen


Since EACH_QUORUM writes require a certain number of acknowledgements from nodes in each DC and WriteTimeoutException only reports on the total number of acknowledgements received, the message can be misleading. Furthermore, if the total number of acknowledgements exceeds or equals the total number of required acknowledgements, which can happen with EACH_QUORUM writes, the number of acknowledgements is changed to required - 1 ({color:#333333}lines 102-103, https://github.com/apache/cassandra/blob/cassandra-3.11/src/java/org/apache/cassandra/service/AbstractWriteResponseHandler.java){color}, which is incorrect.

Consider a 2 DC cluster with 5 nodes in each cluster and a replication factor of 3 in each cluster (for the relevant keyspace). A write at consistency level EACH_QUORUM might receive acknowledments from 3 nodes in one DC and 1 node from the other DC before timing out. 

Then the WriteTimeoutException message will specify that it received 3 acknowledments out of 4 required, which is incorrect and misleading. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org