You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Rohit Singh (JIRA)" <ji...@apache.org> on 2018/09/07 09:45:00 UTC

[jira] [Updated] (CASSANDRA-14702) Cassandra Write failed even when the required nodes to Ack(consistency) are up.

     [ https://issues.apache.org/jira/browse/CASSANDRA-14702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rohit Singh updated CASSANDRA-14702:
------------------------------------
    Description: 
Hi,

We have following configuration in our project for cassandra. 

Total nodes in Cluster-5

Replication Factor- 3

Consistency- LOCAL_QUORUM

We get the writetimeout exception from cassandra even when 2 nodes are up and why does stack trace says that 3 replica were required when consistency is 2?

Below is the exception we got:-

com.datastax.driver.core.exceptions.WriteTimeoutException: Cassandra timeout during write query at consistency LOCAL_QUORUM (3 replica were required but only 2 acknowledged the write)
 at com.datastax.driver.core.Responses$Error$1.decode(Responses.java:59)
 at com.datastax.driver.core.Responses$Error$1.decode(Responses.java:37)
 at com.datastax.driver.core.Message$ProtocolDecoder.decode(Message.java:289)
 at com.datastax.driver.core.Message$ProtocolDecoder.decode(Message.java:269)
 at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)

  was:
Hi,

We have following configuration in our project for cassandra. 

Total nodes in Cluster-5

Replication Factor- 3

Consistency- LOCAL_QUORUM

We get the writetimeout exception from cassandra even when 2 nodes are up.

Below is the exception we got:-

com.datastax.driver.core.exceptions.WriteTimeoutException: Cassandra timeout during write query at consistency LOCAL_QUORUM (3 replica were required but only 2 acknowledged the write)
at com.datastax.driver.core.Responses$Error$1.decode(Responses.java:59)
at com.datastax.driver.core.Responses$Error$1.decode(Responses.java:37)
at com.datastax.driver.core.Message$ProtocolDecoder.decode(Message.java:289)
at com.datastax.driver.core.Message$ProtocolDecoder.decode(Message.java:269)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)


> Cassandra Write failed even when the required nodes to Ack(consistency) are up.
> -------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14702
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14702
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Rohit Singh
>            Priority: Major
>
> Hi,
> We have following configuration in our project for cassandra. 
> Total nodes in Cluster-5
> Replication Factor- 3
> Consistency- LOCAL_QUORUM
> We get the writetimeout exception from cassandra even when 2 nodes are up and why does stack trace says that 3 replica were required when consistency is 2?
> Below is the exception we got:-
> com.datastax.driver.core.exceptions.WriteTimeoutException: Cassandra timeout during write query at consistency LOCAL_QUORUM (3 replica were required but only 2 acknowledged the write)
>  at com.datastax.driver.core.Responses$Error$1.decode(Responses.java:59)
>  at com.datastax.driver.core.Responses$Error$1.decode(Responses.java:37)
>  at com.datastax.driver.core.Message$ProtocolDecoder.decode(Message.java:289)
>  at com.datastax.driver.core.Message$ProtocolDecoder.decode(Message.java:269)
>  at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)



--
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