[
https://issues.apache.org/jira/browse/CASSGO-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18040321#comment-18040321
]
Bohdan Siryk edited comment on CASSGO-97 at 11/24/25 1:00 PM:
--------------------------------------------------------------
Interesting results with C* 5.0.5 and datastax/zdm-proxy:sha-6279d04, but I'm
unsure if it's related
{code:java}
2025/11/24 14:54:26 DBG gocql: Discovered protocol version using host.
protocol_version=5 host_addr=127.0.0.1 host_id=
2025/11/24 14:54:26 INF gocql: Discovered protocol version. protocol_version=5
2025/11/24 14:54:26 DBG gocql: Added control host (session initialization).
host_addr=127.0.0.1 host_id=6768033e-2164-5824-bbd0-31a0a2d9876d
2025/11/24 14:54:26 INF gocql: Control connection connected to host.
host_addr=127.0.0.1 host_id=6768033e-2164-5824-bbd0-31a0a2d9876d
2025/11/24 14:54:26 INF gocql: Refreshed ring.
ring=[127.0.0.1-6768033e-2164-5824-bbd0-31a0a2d9876d:UP]
2025/11/24 14:54:26 INF gocql: Session initialized successfully.
2025/11/24 14:54:26 DBG gocql: Pool connected to node. host_addr=127.0.0.1
port=9999 host_id=6768033e-2164-5824-bbd0-31a0a2d9876d
2025/11/24 14:54:26 DBG gocql: Logging number of connections of pool after
filling stopped. host_addr=127.0.0.1
host_id=6768033e-2164-5824-bbd0-31a0a2d9876d count=2
2025/11/24 14:54:37 DBG gocql: Request timed out on connection.
host_id=6768033e-2164-5824-bbd0-31a0a2d9876d addr=127.0.0.1
gocql: no response received from cassandra within timeout period
Release version is: {code}
upd:
I see this log in the zdm-proxy:
{code:java}
datastax-zdm-proxy | time="2025-11-24T12:57:32Z" level=warning msg="error
sending request with opcode 4f70436f64652050524550415245205b307830395d and
streamid 128: could not convert intercepted response frame {header: {response:
true, version: ProtocolVersion OSS 5, flags: 00000000, stream id: 128, opcode:
OpCode RESULT [0x08], body length: 0}, body: {tracing id: , payload: map[],
warnings: [], message: RESULT PREPARED ([127 23 164 187 176 247 114 30 230 194
138 1 102 110 55 138])}}: cannot encode body: cannot encode body message:
cannot write empty RESULT Prepared result metadata id" {code}
I guess this is unrelated
was (Author: JIRAUSER306087):
Interesting results with C* 5.0.5 and datastax/zdm-proxy:sha-6279d04, but I'm
unsure if it's related
{code:java}
2025/11/24 14:54:26 DBG gocql: Discovered protocol version using host.
protocol_version=5 host_addr=127.0.0.1 host_id=
2025/11/24 14:54:26 INF gocql: Discovered protocol version. protocol_version=5
2025/11/24 14:54:26 DBG gocql: Added control host (session initialization).
host_addr=127.0.0.1 host_id=6768033e-2164-5824-bbd0-31a0a2d9876d
2025/11/24 14:54:26 INF gocql: Control connection connected to host.
host_addr=127.0.0.1 host_id=6768033e-2164-5824-bbd0-31a0a2d9876d
2025/11/24 14:54:26 INF gocql: Refreshed ring.
ring=[127.0.0.1-6768033e-2164-5824-bbd0-31a0a2d9876d:UP]
2025/11/24 14:54:26 INF gocql: Session initialized successfully.
2025/11/24 14:54:26 DBG gocql: Pool connected to node. host_addr=127.0.0.1
port=9999 host_id=6768033e-2164-5824-bbd0-31a0a2d9876d
2025/11/24 14:54:26 DBG gocql: Logging number of connections of pool after
filling stopped. host_addr=127.0.0.1
host_id=6768033e-2164-5824-bbd0-31a0a2d9876d count=2
2025/11/24 14:54:37 DBG gocql: Request timed out on connection.
host_id=6768033e-2164-5824-bbd0-31a0a2d9876d addr=127.0.0.1
gocql: no response received from cassandra within timeout period
Release version is: {code}
> Protocol version negotiation doesn't work if server replies with stream id
> different than 0
> -------------------------------------------------------------------------------------------
>
> Key: CASSGO-97
> URL: https://issues.apache.org/jira/browse/CASSGO-97
> Project: Apache Cassandra Go driver
> Issue Type: Bug
> Components: Core
> Reporter: João Reis
> Priority: Normal
> Fix For: 2.x
>
>
> If the server's ProtocolError response comes with stream id 0 then [this
> code|https://github.com/apache/cassandra-gocql-driver/blob/0326fae3617dd19b901f2e9a97479c04fc11e05a/conn.go#L685-L700]
> will create the protocol error object.
> If the response comes with a positive stream id then [this
> code|https://github.com/apache/cassandra-gocql-driver/blob/0326fae3617dd19b901f2e9a97479c04fc11e05a/conn.go#L1314-L1330]
> will create the protocol error object. This latter way of creating the error
> makes [the regex check not
> work|https://github.com/apache/cassandra-gocql-driver/blob/0326fae3617dd19b901f2e9a97479c04fc11e05a/control.go#L210-L245].
> This was found when trying to connect to
> [ZDM-Proxy|https://github.com/datastax/zdm-proxy/] but connecting to a C*
> 3.11.x cluster works fine.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]