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

Bohdan Siryk edited comment on CASSGO-97 at 11/24/25 12:42 PM:
---------------------------------------------------------------

Here is how I set it up:

-version: "3.9"-
-services:-
-cassandra-node1:-
-image: cassandra:3.11.11-
-container_name: cassandra-node1-
-restart: unless-stopped-
-networks:-
-cassandra-network:-
-ipv4_address: 172.28.0.2-
-environment:-
 - -CASSANDRA_CLUSTER_NAME=TestCluster-
 - -CASSANDRA_START_RPC=true-
 - -CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch-
 - -MAX_HEAP_SIZE=2G-
 - -HEAP_NEWSIZE=512M-
-cassandra-node2:-
-image: cassandra:3.11.11-
-container_name: cassandra-node2-
-restart: unless-stopped-
-networks:-
-cassandra-network:-
-ipv4_address: 172.28.0.3-
-environment:-
 - -CASSANDRA_CLUSTER_NAME=TestCluster-
 - -CASSANDRA_START_RPC=true-
 - -CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch-
 - -MAX_HEAP_SIZE=2G-
 - -HEAP_NEWSIZE=512M-
-datastax-zdm-proxy:-
-image: datastax/zdm-proxy:sha-6279d04-
-container_name: datastax-zdm-proxy-
-restart: unless-stopped-
-networks:-
-cassandra-network:-
-ipv4_address: 172.28.0.4-
-depends_on:-
 - -cassandra-node1-
 - -cassandra-node2-
-ports:-
 - -"9999:9999"-
-environment:-
 - -ZDM_ORIGIN_CONTACT_POINTS=cassandra-node1-
 - -ZDM_ORIGIN_USERNAME=cassandra-
 - -ZDM_ORIGIN_PASSWORD=cassandra-
 - -ZDM_ORIGIN_PORT=9042-
 - -ZDM_TARGET_CONTACT_POINTS=cassandra-node2-
 - -ZDM_TARGET_USERNAME=cassandra-
 - -ZDM_TARGET_PASSWORD=cassandra-
 - -ZDM_TARGET_PORT=9042-
 - -ZDM_PROXY_LISTEN_PORT=9999-
 - -ZDM_PROXY_LISTEN_ADDRESS=0.0.0.0-
 - -ZDM_PRIMARY_CLUSTER=ORIGIN-
 - -ZDM_READ_MODE=PRIMARY_ONLY-
 - -ZDM_LOG_LEVEL=INFO-
-networks:-
-cassandra-network:-
-driver: bridge-
-ipam:-
-config:-
 - -subnet: 172.28.0.0/16-
-gateway: 172.28.0.1-



 

Oh, that formatting.... Never mind, just let me a moment...


was (Author: JIRAUSER306087):
Here is how I set it up:


version: "3.9"
services:
cassandra-node1:
image: cassandra:3.11.11
container_name: cassandra-node1
restart: unless-stopped
networks:
cassandra-network:
ipv4_address: 172.28.0.2
environment:
- CASSANDRA_CLUSTER_NAME=TestCluster
- CASSANDRA_START_RPC=true
- CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch
- MAX_HEAP_SIZE=2G
- HEAP_NEWSIZE=512M
cassandra-node2:
image: cassandra:3.11.11
container_name: cassandra-node2
restart: unless-stopped
networks:
cassandra-network:
ipv4_address: 172.28.0.3
environment:
- CASSANDRA_CLUSTER_NAME=TestCluster
- CASSANDRA_START_RPC=true
- CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch
- MAX_HEAP_SIZE=2G
- HEAP_NEWSIZE=512M
datastax-zdm-proxy:
image: datastax/zdm-proxy:sha-6279d04
container_name: datastax-zdm-proxy
restart: unless-stopped
networks:
cassandra-network:
ipv4_address: 172.28.0.4
depends_on:
- cassandra-node1
- cassandra-node2
ports:
- "9999:9999"
environment:
- ZDM_ORIGIN_CONTACT_POINTS=cassandra-node1
- ZDM_ORIGIN_USERNAME=cassandra
- ZDM_ORIGIN_PASSWORD=cassandra
- ZDM_ORIGIN_PORT=9042
- ZDM_TARGET_CONTACT_POINTS=cassandra-node2
- ZDM_TARGET_USERNAME=cassandra
- ZDM_TARGET_PASSWORD=cassandra
- ZDM_TARGET_PORT=9042
- ZDM_PROXY_LISTEN_PORT=9999
- ZDM_PROXY_LISTEN_ADDRESS=0.0.0.0
- ZDM_PRIMARY_CLUSTER=ORIGIN
- ZDM_READ_MODE=PRIMARY_ONLY
- ZDM_LOG_LEVEL=INFO
networks:
cassandra-network:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16
gateway: 172.28.0.1

> 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]

Reply via email to