You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Andrew J Lenards (JIRA)" <ji...@apache.org> on 2015/01/21 20:34:39 UTC

[jira] [Comment Edited] (CASSANDRA-8663) cqlsh is showing the integer value for ConsistencyLevel not name

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

Andrew J Lenards edited comment on CASSANDRA-8663 at 1/21/15 7:34 PM:
----------------------------------------------------------------------

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


was (Author: alenards):
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)