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

Zachary St Lawrence commented on CASSANDRA-9451:
------------------------------------------------

Sorry was on vacation.  When I got back to the office I reinstalled latest and 
tested. The problem is in using a newer version of cassandra to connect to an 
older server example ~ 2.1.4.

First let me demonstrate that configuration works in general for older versions.

{code}> apt-get install cassandra=2.1.9
Setting up cassandra (2.1.9)

> SSL_CERTFILE=~/qa_ssl_ca/qa_ca.pem cqlsh -k example -C -u sampleuser -p 
> samplepassword cassandra.sqanet.com 9042 --ssl
Connected to cassandra.sqanet.com at sqa-cassandra.sqanet.com:9042.
[cqlsh 5.0.1 | Cassandra 2.1.4 | CQL spec 3.2.0 | Native protocol v3]
{code}

compare this to latest stable bundle.

{code}> apt-get install cassandra
Setting up cassandra (2.2.1)

> cqlsh --version
cqlsh 5.0.1

> SSL_CERTFILE=~/qa_ssl_ca/qa_ca.pem cqlsh --cqlversion=3.2.0 -k example -C -u 
> sampleuser -p samplepassword cassandra.sqanet.com 9042 --ssl
Connection error: ('Unable to connect to any servers', {'cassandra.sqanet.com': 
ConnectionException(u'Did not get expected SupportedMessage response; instead, 
got: <ErrorMessage code=0000 [Server error] 
message="io.netty.handler.codec.DecoderException: 
org.apache.cassandra.transport.ProtocolException: Invalid or unsupported 
protocol version: 4">',)})
{code}

> 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