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

Stefania commented on CASSANDRA-9451:
-------------------------------------

Hi [~zstlaw], sorry for the delay.  

Could you attach {{cqlsh_to_2_1_server.sh}} and specify which 2.2.0 version you 
are reproducing the problem with?

What happens when I increase the protocol version in cqlsh is that the python 
driver automatically downgrades it and everything works fine, on the latest 
branches for 2.1 or 2.2. 

So I tried connecting from a 2.2 cqlsh to a running 2.1 node and got:

{code}
Connection error: ('Unable to connect to any servers', {'127.0.0.1': 
ProtocolError("cql_version '3.3.0' is not supported by remote (w/ native 
protocol). Supported versions: [u'3.2.0']",)})
{code}

However {{./cqlsh --cqlversion=3.2.0}} works fine as the driver once again 
downgrades the protocol version.

The driver downgrades the version only when receiving 
{{ProtocolVersionUnsupported}}, which leads me to believe this patch is working 
as expected.

I wonder if the 2.2.0 version you used was older than 2.2.0 rc1 or if I am 
doing something wrong to reproduce this?

> Startup message response for unsupported protocol versions is incorrect
> -----------------------------------------------------------------------
>
>                 Key: CASSANDRA-9451
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9451
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: OS X 10.9
> Cassandra 2.1.5 
>            Reporter: Jorge Bay
>            Assignee: Stefania
>              Labels: client-impacting
>             Fix For: 2.1.6, 2.2.0 rc1
>
>         Attachments: 9451.txt
>
>
> The response to a STARTUP request with protocol v4 on a C* 2.1 host is an 
> error with an incorrect error code (0). 
> Instead of the error code being "Protocol error" ({{0x000A}}) it has error 
> code 0 and message (wrapped by netty): 
> {{"io.netty.handler.codec.DecoderException: 
> org.apache.cassandra.transport.ProtocolException: Invalid or unsupported 
> protocol version: 4"}}



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

Reply via email to