cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Thompson <philip.thomp...@datastax.com>
Subject Re: [Consitency on cqlsh command prompt]
Date Wed, 17 Dec 2014 13:43:36 GMT
I believe the problem here is that the consistency level it is showing you
is not the number of nodes that need to respond, but the enum value that
corresponds to QUORUM internally. If you would like, you can file an
improvement request on the Apache Cassandra Jira.

On Wed, Dec 17, 2014 at 12:47 AM, nitin padalia <padalia.nitin@gmail.com>
wrote:
>
> Hi,
>
> When I set Consistency to QUORUM in cqlsh command line. It says
> consistency is set to quorum.
>
> cqlsh:testdb> CONSISTENCY QUORUM ;
> Consistency level set to QUORUM.
>
> However when I check it back using CONSISTENCY command on the prompt
> it says consistency is 4. However it should be 2 as my replication
> factor for the keyspace is 3.
> cqlsh:testdb> CONSISTENCY ;
> Current consistency level is 4.
>
> Isn't consistency QUORUM calculated by: (replication_factor/2)+1?
> Where replication_factor/2 is rounded down.
>
> If yes then why consistency is displayed as 4, however it should be 2
> (3/2 = 1.5 = 1)+1 = 2.
>
> I am using Casssandra version 2.1.2 and cqlsh 5.0.1 and CQL spec 3.2.0
>
>
> Thanks! in advance.
> Nitin Padalia
>

Mime
View raw message