Support Protocol V6

Description

When attempting to connect to Cassandra 4.0, the driver requires an explicit configuration of advanced.protocol.version=V5, otherwise the connect attempt fails with:

AllNodesFailedException: Could not reach any contact point, make sure you've provided valid addresses (showing first 1 nodes, use getAllErrors() for more): Node(endPoint=localhost:9042, hostId=null, hashCode=72b08f17): [com.datastax.oss.driver.api.core.connection.ConnectionInitException: [s65|control|id: 0x5b800706, L:/127.0.0.1:58555 - R:localhost/127.0.0.1:9042] Protocol initialization request, step 1 (OPTIONS): unexpected failure (java.lang.IllegalArgumentException: Unsupported request opcode: 0 in protocol 6)]

It would be good to either have protocol version discovery or at least a better exception message so users get an idea of how they could fix the problem.

Environment

Cassandra 4.0 RC1

Pull Requests

None

Activity

Show:

Misagh Moayyed April 27, 2021 at 7:01 PM

Hello. If it helps, the driver version that is exhibiting this issue is 4.11.0:

https://mvnrepository.com/artifact/com.datastax.oss/java-driver-core/4.11.0

FWIW I did also test with 4.10.0 and I did see the same issue.

PS Some additional notes are posted here: https://issues.apache.org/jira/browse/CASSANDRA-16636

Erik Merkle April 27, 2021 at 6:37 PM

I have a PR that should fix this here:
https://github.com/datastax/java-driver/pull/1546

Erik Merkle April 27, 2021 at 5:44 PM

Erik Merkle April 27, 2021 at 5:01 PM
Edited

I have seen this issue with the Management API project yesterday. The project uses Driver version 4.10.0.

 

EDIT: I am seeing the same error with a simple CqlSession.builder().build() call using driver 4.11.0 against Cassandra 4.0-rc1 in ccm

Alex Dutra April 27, 2021 at 3:54 PM
Edited

Hi thanks for reporting this! Do you know the exact driver and C* version? Asking because things change fast in both server and driver, and not all combinations thereof can work together.

Also, C* 4.0-RC1 was released, make sure to use that one if possible.

EDIT

My bad, you mentioned 4.0-RC1 already. I only need the driver version in fact.

Fixed

Details

Assignee

Reporter

Fix versions

Components

Priority

Created April 26, 2021 at 7:24 AM
Updated April 28, 2021 at 9:36 AM
Resolved April 28, 2021 at 9:33 AM