Issue upgrading from 2.14.1 to 2.15.2 when negotiating versions.aha..

199 views
Skip to first unread message

Alex

unread,
Jun 19, 2020, 3:00:30 PM6/19/20
to DataStax C++ Driver for Apache Cassandra User Mailing List
Hi, as soon as we upgraded to 2.15.2 we are seeing a lot of messages trying to negotiate the version (our Cassandra nodes are on v4)

1592590677.934 [ERROR] (cluster_connector.cpp:192:void datastax::internal::core::ClusterConnector::on_connect(datastax::internal::core::ControlConnector*)): Unable to establish a control connection to host 10.122.103.171 because of the following error: Underlying connection error: Received error response 'Invalid or unsupported protocol version (66); supported versions are (3/v3, 4/v4, 5/v5-beta)' (0x0200000A)
1592590677.934 [WARN] (cluster_connector.cpp:289:void datastax::internal::core::ClusterConnector::on_connect(datastax::internal::core::ControlConnector*)): Host 10.122.103.171 does not support protocol version DSEv2. Trying protocol version DSEv1...
1592590677.934 [ERROR] (cluster_connector.cpp:192:void datastax::internal::core::ClusterConnector::on_connect(datastax::internal::core::ControlConnector*)): Unable to establish a control connection to host 10.122.103.171 because of the following error: Underlying connection error: Received error response 'Invalid or unsupported protocol version (66); supported versions are (3/v3, 4/v4, 5/v5-beta)' (0x0200000A)
1592590677.934 [WARN] (cluster_connector.cpp:289:void datastax::internal::core::ClusterConnector::on_connect(datastax::internal::core::ControlConnector*)): Host 10.122.103.171 does not support protocol version DSEv2. Trying protocol version DSEv1...
1592590677.934 [ERROR] (cluster_connector.cpp:192:void datastax::internal::core::ClusterConnector::on_connect(datastax::internal::core::ControlConnector*)): Unable to establish a control connection to host 10.122.103.171 because of the following error: Underlying connection error: Received error response 'Invalid or unsupported protocol version (66); supported versions are (3/v3, 4/v4, 5/v5-beta)' (0x0200000A)
1592590677.934 [WARN] (cluster_connector.cpp:289:void datastax::internal::core::ClusterConnector::on_connect(datastax::internal::core::ControlConnector*)): Host 10.122.103.171 does not support protocol version DSEv2. Trying protocol version DSEv1...
1592590677.935 [ERROR] (cluster_connector.cpp:192:void datastax::internal::core::ClusterConnector::on_connect(datastax::internal::core::ControlConnector*)): Unable to establish a control connection to host 10.122.103.172 because of the following error: Underlying connection error: Received error response 'Invalid or unsupported protocol version (65); supported versions are (3/v3, 4/v4, 5/v5-beta)' (0x0200000A)
1592590677.935 [WARN] (cluster_connector.cpp:289:void datastax::internal::core::ClusterConnector::on_connect(datastax::internal::core::ControlConnector*)): Host 10.122.103.172 does not support protocol version DSEv1. Trying protocol version v4...
1592590677.935 [ERROR] (cluster_connector.cpp:192:void datastax::internal::core::ClusterConnector::on_connect(datastax::internal::core::ControlConnector*)): Unable to establish a control connection to host 10.122.103.170 because of the following error: Underlying connection error: Received error response 'Invalid or unsupported protocol version (65); supported versions are (3/v3, 4/v4, 5/v5-beta)' (0x0200000A)
1592590677.935 [WARN] (cluster_connector.cpp:289:void datastax::internal::core::ClusterConnector::on_connect(datastax::internal::core::ControlConnector*)): Host 10.122.103.170 does not support protocol version DSEv1. Trying protocol version v4...

Then it ultimately times out. Downgraded again to 2.14.1 and all this goes away. Is there something new or that we need to be aware of in 2.15.2? Right now we cannot connect at all. Also it looks like it's trying v4 (which we have) but it's failing. 

Thanks
Alex

Diego

unread,
Jun 24, 2020, 6:27:25 PM6/24/20
to DataStax C++ Driver for Apache Cassandra User Mailing List
Hi Alex
I had the same problem while upgrading to 2.15.2, since the fact cpp driver support only version v3  see doc driver 2.15 I have added the following code after instatiation of CassCluster object.

cass_cluster_set_protocol_version(cluster, CASS_PROTOCOL_VERSION_V3);

I hope this can help.

Diego
Message has been deleted

Alex

unread,
Jul 10, 2020, 9:11:01 AM7/10/20
to DataStax C++ Driver for Apache Cassandra User Mailing List
Hi Diego, I've tried setting the protocol version with 4 directly and it works. I'm not sure if the CQL version 3 that's mentioned here is the same as the communication protocol. We've been on 4 for a long time. The driver also cycles through DSEv2,DSEv1 and 4 and the node supports versions 3/4/5. Would be nice to get an official answer from the devs of this group or at least a viable recommendation since this is a breaking change that everyone (who was not explicitly setting the version) will likely experience. 

Michael Penick

unread,
Jul 28, 2020, 10:30:15 AM7/28/20
to DataStax C++ Driver for Apache Cassandra User Mailing List
These logs are unnecessary noise. I've created a pull request to fix this: https://github.com/datastax/cpp-driver/pull/480

Let me know what you think.

--
To unsubscribe from this group and stop receiving emails from it, send an email to cpp-driver-us...@lists.datastax.com.


--
Reply all
Reply to author
Forward
0 new messages