cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefania (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-12150) cqlsh does not automatically downgrade CQL version
Date Wed, 13 Jul 2016 02:06:20 GMT

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

Stefania commented on CASSANDRA-12150:
--------------------------------------

Thanks for the review. Committed to trunk as 74647a8cc5b18b86ee5cfdb071a8644630a1e7f3 with
the following in NEWS.txt:

{code}
- cqlsh can now connect to older Cassandra versions by downgrading the native
  protocol version. Please note that this is currently not part of our release 
  testing and, as a consequence, it is not guaranteed to work in all cases.
  See CASSANDRA-12150 for more details.
{code}

We can consider adding a warning later on if, as you said, it causes frequent problems.


> cqlsh does not automatically downgrade CQL version
> --------------------------------------------------
>
>                 Key: CASSANDRA-12150
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12150
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Yusuke Takata
>            Priority: Minor
>              Labels: cqlsh
>         Attachments: patch.txt
>
>
> Cassandra drivers such as the Python driver can automatically connect a supported version,

> but I found that cqlsh does not automatically downgrade CQL version as the following.
> {code}
> $ cqlsh
> Connection error: ('Unable to connect to any servers', {'127.0.0.1': ProtocolError("cql_version
'3.4.2' is not supported by remote (w/ native protocol). Supported versions: [u'3.4.0']",)})
> {code}
> I think that the function is useful for cqlsh too. 
> Could someone review the attached patch?



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

Mime
View raw message