Skip DSE versions during protocol negotiation - #985
Conversation
📝 WalkthroughWalkthroughAutomatic protocol negotiation now selects only OSS protocol versions. Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Comment |
Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
8244552 to
6584965
Compare
|
Fixed CI failure due to documentation. |
There was a problem hiding this comment.
Note
Quiet mode is enabled, so only the most important comments were posted inline. Other review comments are grouped below.
🟡 Other comments (1)
manual/core/native_protocol/README.md-55-66 (1)
55-66: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick winDocument DSE 7.0+ in the compatibility table.
DefaultProtocolVersionRegistryhandles DSE 7.0+ separately and allows OSS V5, but this table stops at DSE 6.8 while presenting the DSE negotiation matrix. Add a7.0+ | v5row or state that the table excludes DSE 7.0+.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@manual/core/native_protocol/README.md` around lines 55 - 66, Update the DSE compatibility table in the native protocol documentation to include a 7.0+ entry negotiated as v5, reflecting DefaultProtocolVersionRegistry behavior; keep the existing rows and surrounding explanation unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Other comments:
In `@manual/core/native_protocol/README.md`:
- Around line 55-66: Update the DSE compatibility table in the native protocol
documentation to include a 7.0+ entry negotiated as v5, reflecting
DefaultProtocolVersionRegistry behavior; keep the existing rows and surrounding
explanation unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: QUIET
Plan: Pro Plus
Run ID: ab80d0ec-2a75-4207-a776-a70601932d3b
📒 Files selected for processing (5)
changelog/README.mdcore/src/main/java/com/datastax/oss/driver/internal/core/DefaultProtocolVersionRegistry.javacore/src/test/java/com/datastax/oss/driver/internal/core/DefaultProtocolVersionRegistryTest.javamanual/core/configuration/reference/README.rstmanual/core/native_protocol/README.md
Summary
Fixes #969 by excluding DSE protocol versions from automatic protocol negotiation.
The initial negotiation sequence now uses standard Cassandra protocol versions:
This avoids rejected
DSE_V2andDSE_V1connection attempts when starting a session against ScyllaDB.Explicitly configured DSE protocol versions remain supported.
Changes
Testing