Skip to content

Commit

Permalink
Use DSEv2 as default max protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-antoniak committed Jul 18, 2024
1 parent 1dabb23 commit 2615ce9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration-tests/setup/testcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ func NewTestConfig(originHost string, targetHost string) *config.Config {
conf.ReadMode = config.ReadModePrimaryOnly
conf.SystemQueriesMode = config.SystemQueriesModeOrigin
conf.AsyncHandshakeTimeoutMs = 4000
conf.ControlConnMaxProtocolVersion = "3"
conf.ControlConnMaxProtocolVersion = "DseV2"

conf.ProxyRequestTimeoutMs = 10000

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/streamids_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
// if we notice greater stream ID value than expected. We cannot easily test
// exceeding 127 stream IDs allowed in protocol V2, because clients will
// fail serializing the frame
func TestMaxStreamIds(t *testing.T) {
func TestLimitStreamIdsGeneration(t *testing.T) {
originAddress := "127.0.1.1"
targetAddress := "127.0.1.2"
originProtoVer := primitive.ProtocolVersion2
Expand Down
2 changes: 1 addition & 1 deletion proxy/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Config struct {
ReplaceCqlFunctions bool `default:"false" split_words:"true" yaml:"replace_cql_functions"`
AsyncHandshakeTimeoutMs int `default:"4000" split_words:"true" yaml:"async_handshake_timeout_ms"`
LogLevel string `default:"INFO" split_words:"true" yaml:"log_level"`
ControlConnMaxProtocolVersion string `default:"3" split_words:"true" yaml:"control_conn_max_protocol_version"` // Numeric Cassandra OSS protocol version or DseV1 / DseV2
ControlConnMaxProtocolVersion string `default:"DseV2" split_words:"true" yaml:"control_conn_max_protocol_version"` // Numeric Cassandra OSS protocol version or DseV1 / DseV2

// Proxy Topology (also known as system.peers "virtualization") bucket

Expand Down

0 comments on commit 2615ce9

Please sign in to comment.