Erik Scheuter created CASSANDRA-14129:
-----------------------------------------

             Summary: BatchStatement (LOGGED BATCH) fails: Not enough replica 
available for query at consistency ONE (1 required but only 0 alive)
                 Key: CASSANDRA-14129
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14129
             Project: Cassandra
          Issue Type: Bug
            Reporter: Erik Scheuter


In our test-cluster I get the error "Not enough replica available for query at 
consistency ONE (1 required but only 0 alive)" when 1 node is down and a 
BatchStatement is used. By default it uses LOGGED BATCHES and 
DCAwareRoundRobinPolicy.
We have 2 DC's, 4 nodes and a RF 2:2. Write Consistency of QUORUM (*not* LOCAL 
QUORUM).

I noticed as soon as the driver marked the LocalDC containing the one with the 
node down, this error occurs. If the other DC is marked as the LocalDC, 
everything works as expected.

The issue https://issues.apache.org/jira/browse/CASSANDRA-7870 points to the 
comment from Olivier Michallat at 
[StackOverflow|https://stackoverflow.com/questions/26015282/cassandra-not-enough-replica-available-java-driver-behaviour-different-from-c]:
_This batch log must be replicated to at least one replica other than the 
coordinator, otherwise that would defeat the above mechanism._

I think it needs an other replica in the same DC.

These constraints can lead to downtime, so I expect them to find in the 
documentation (and a more detailed error message).

Used:
Cassandra 2.0.17
Datastax-driver 3.3.0



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to