cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew J Lenards (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8663) cqlsh is showing the integer value for ConsistencyLevel not name
Date Wed, 21 Jan 2015 19:34:37 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-8663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14286130#comment-14286130
] 

Andrew J Lenards commented on CASSANDRA-8663:
---------------------------------------------

I should also note that doing the same operations in cqlsh for (DSE 4.6.0 / Cassandra  2.0.11.83)
does not yield the integer behavior. 

{noformat}
cqlsh:system> CONSISTENCY QUORUM;
Consistency level set to QUORUM.
cqlsh:system> CONSISTENCY;
Current consistency level is QUORUM.
cqlsh:system> CONSISTENCY EACH_QUORUM; 
Consistency level set to EACH_QUORUM.
{noformat} 

> cqlsh is showing the integer value for ConsistencyLevel not name 
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-8663
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8663
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: Cassandra 2.1.2-SNAPSHOT, built/fetched with ccm
>            Reporter: Andrew J Lenards
>            Priority: Minor
>              Labels: lhf
>
> When you use issues the {{CONSISTENCY;}} command in {{cqlsh}}, it is showing the integer
value for the current consistency level, not the name of that consistency level. 
> Example: 
> {noformat}
> cqlsh> CONSISTENCY QUORUM; 
> Consistency level set to QUORUM.
> cqlsh> CONSISTENCY; 
> Current consistency level is 4.
> {noformat}
> The output can be confusing for some who might think that it refers to the number of
nodes required for acknowledge when performing an operation. The name of the current consistency
level would be more clear. 
> More examples: 
> https://gist.github.com/lenards/e97ce13347e7ad454b86
> Thank you.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message