Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-2064

When the target node is down and the replication factor is 1. Any batch mutate/read with consistency level QUORUM will fail to succeed.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Not A Problem
    • None
    • None
    • None

    Description

      When the target node is down and the replication factor is 1. Any batch mutate or read (with consistency level QUORUM) will fail to succeed.
      This case occurs because the quorum cannot be verified.
      The storage proxy will write the data on its own log, but cannot assure the quorum (since the quorum definition requires the replica to respond) - the responseHandler.assureSufficientLiveNodes(); will throw UnavailableException.
      While it is OK to send an exception i think that the exception should contain an appropriate message - like consistency level: <Quorum>, replication factor: <replication factor> cannot be verified for key... (adding the natural and the hinted node should be nice too at least in the log). Perhaps a separate exception should be thrown (sub type of UnavailableException)

      Attachments

        Activity

          People

            Unassigned Unassigned
            mikaels Mikael Sitruk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: