Repository navigation
Remove unused DataStax Astra support - #1034
Conversation
|
Understand this PR’s impact Explore downstream dependencies and potential security impact with Blast Radius. Important Review skippedWe couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: QUIET Plan: Advanced Run ID: 📒 Files selected for processing (9)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change removes Astra secure-connect-bundle and cloud proxy APIs, configuration, runtime handling, SNI support, tests, and dependencies. Client-routes handling remains and no longer conflicts with secure-connect bundles. Protocol option tests now validate Priority: ➖ Normal Change: Other 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 13 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
Comment |
a6a40b9 to
cca0952
Compare
nikagra
left a comment
There was a problem hiding this comment.
Two leftovers that have no line in the diff to anchor to:
- [Minor] 🟡
TypesafeDriverConfig.overrideDefaults()loses its only production caller here.git grep overrideDefaultsnow matches just the declaration andTypeSafeDriverConfigOverrideDefaultsTest— ~60 lines of mechanism plus a 150-line test go dead, yetapplyDefaultOverrides()still runs on everyreload(). - [Nit] 🟢
W3CContextRequestIdGenerator(String payloadKey)was added for the Astratraceparentdefault; after this PR its only caller isRequestIdGeneratorTest:77. The config-driven path uses theDriverContextctor and the interface default key.
|
Follow-up on the two unanchored review notes:
Both are intentionally unchanged; the Astra-specific caller and ASTRA_PAYLOAD_KEY are still removed. |
There was a problem hiding this comment.
🟢 Approval recommended
Validation passed and no unresolved review issues remain.
Pull request overview
Removes unsupported DataStax Astra secure-connect-bundle functionality while preserving ScyllaDB client-routes/private-endpoint support.
Changes:
- Removes Astra APIs, configuration, SNI routing, examples, fixtures, and tests.
- Removes WireMock and replaces transitive test utilities.
- Updates channel tests, documentation, and migration guidance.
File summaries
| File | Description |
|---|---|
upgrade_guide/README.md |
Documents the breaking removal. |
pom.xml |
Removes WireMock dependency management. |
manual/core/address_resolution/README.md |
Updates client-routes guidance. |
integration-tests/src/test/java/com/datastax/oss/driver/api/core/cloud/SniProxyServer.java |
Removes the Astra proxy fixture. |
integration-tests/src/test/java/com/datastax/oss/driver/api/core/cloud/SniProxyRule.java |
Removes the Astra proxy rule. |
integration-tests/src/test/java/com/datastax/oss/driver/api/core/cloud/CloudIT.java |
Removes Astra integration tests. |
integration-tests/pom.xml |
Removes the WireMock dependency. |
examples/src/main/java/com/datastax/oss/driver/examples/mapper/KillrVideoMapperExample.java |
Replaces Astra-specific content. |
examples/src/main/java/com/datastax/oss/driver/examples/astra/AstraReadCassandraVersion.java |
Removes the Astra example. |
core/src/test/resources/config/cloud/metadata.json |
Removes the cloud fixture. |
core/src/test/java/com/datastax/oss/driver/internal/core/protocol/BytesToSegmentDecoderTest.java |
Uses shaded Guava. |
core/src/test/java/com/datastax/oss/driver/internal/core/metrics/TaggingMetricIdGeneratorTest.java |
Uses shaded Guava. |
core/src/test/java/com/datastax/oss/driver/internal/core/metrics/DefaultMetricIdTest.java |
Uses shaded Guava. |
core/src/test/java/com/datastax/oss/driver/internal/core/metadata/schema/TableMetadataTest.java |
Uses shaded Guava. |
core/src/test/java/com/datastax/oss/driver/internal/core/metadata/DefaultTopologyMonitorTest.java |
Uses shaded Guava. |
core/src/test/java/com/datastax/oss/driver/internal/core/context/DefaultDriverConfigReporterTest.java |
Removes SNI assertions. |
core/src/test/java/com/datastax/oss/driver/internal/core/context/ClientRoutesConfigFromFileTest.java |
Removes the obsolete bundle conflict test. |
core/src/test/java/com/datastax/oss/driver/internal/core/config/cloud/CloudConfigFactoryTest.java |
Removes bundle parsing tests. |
core/src/test/java/com/datastax/oss/driver/internal/core/channel/ChannelFactoryTestBase.java |
Preserves OPTIONS negotiation. |
core/src/test/java/com/datastax/oss/driver/internal/core/channel/ChannelFactorySupportedOptionsTest.java |
Tests OPTIONS negotiation on every channel. |
core/src/test/java/com/datastax/oss/driver/internal/core/channel/ChannelFactoryClusterNameTest.java |
Updates channel initialization expectations. |
core/src/test/java/com/datastax/oss/driver/api/core/data/CqlVectorTest.java |
Replaces a transitive codec utility. |
core/src/main/resources/reference.conf |
Removes cloud configuration. |
core/src/main/java/com/datastax/oss/driver/internal/core/ssl/SniSslEngineFactory.java |
Removes Astra SNI TLS support. |
core/src/main/java/com/datastax/oss/driver/internal/core/metadata/SniEndPoint.java |
Removes the SNI endpoint implementation. |
core/src/main/java/com/datastax/oss/driver/internal/core/metadata/CloudTopologyMonitor.java |
Removes cloud topology handling. |
core/src/main/java/com/datastax/oss/driver/internal/core/context/DefaultDriverContext.java |
Removes cloud monitor selection. |
core/src/main/java/com/datastax/oss/driver/internal/core/context/DefaultDriverConfigReporter.java |
Removes SNI reporting logic. |
core/src/main/java/com/datastax/oss/driver/internal/core/config/cloud/CloudConfigFactory.java |
Removes bundle parsing. |
core/src/main/java/com/datastax/oss/driver/internal/core/config/cloud/CloudConfig.java |
Removes the cloud configuration model. |
core/src/main/java/com/datastax/oss/driver/internal/core/channel/ChannelFactory.java |
Removes Astra product handling. |
core/src/main/java/com/datastax/oss/driver/api/core/session/SessionBuilder.java |
Removes secure-bundle APIs. |
core/src/main/java/com/datastax/oss/driver/api/core/session/ProgrammaticArguments.java |
Removes cloud proxy arguments. |
core/src/main/java/com/datastax/oss/driver/api/core/config/TypedDriverOption.java |
Removes the typed cloud option. |
core/src/main/java/com/datastax/oss/driver/api/core/config/DefaultDriverOption.java |
Removes the cloud option definition. |
core/pom.xml |
Removes the core WireMock dependency. |
Review details
- Files reviewed: 36/39 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Cleanup left over from the Astra removal — none block this PR, no correctness bugs found, but worth a follow-up: [Minor] 🟡 [Minor] 🟡 [Minor] 🟡 [Nit] 🟢 [Nit] 🟢 [Nit] 🟢 |
d16e315 to
4a44271
Compare
|
Thanks. I addressed the actionable internal/test cleanup in
I’m intentionally retaining the other items:
|
4a44271 to
146b688
Compare
nikagra
left a comment
There was a problem hiding this comment.
Needs a rebase onto scylla-4.x; the upgrade-guide entry has to move to 4.19.2.3.
146b688 to
7a99064
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Please upload reports for the commit eb04d5b to get more accurate results. Additional details and impacted files@@ Coverage Diff @@
## scylla-4.x #1034 +/- ##
================================================
+ Coverage 81.76% 81.98% +0.21%
+ Complexity 9692 9660 -32
================================================
Files 980 975 -5
Lines 36687 36418 -269
Branches 5048 5015 -33
================================================
- Hits 29997 29857 -140
+ Misses 6690 6561 -129 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Remove secure connect bundle parsing, cloud topology, SNI routing, public configuration API, examples, tests, and fixtures. Preserve ScyllaDB client routes and document migration in the 4.19.2.3 guide. Closes #1026
7a99064 to
eb04d5b
Compare
Closes #1026. Part of #1025.
What and why
Remove DataStax Astra secure-connect-bundle parsing, topology/SNI routing, public configuration, examples, and tests. ScyllaDB does not use or test this path, so deleting it reduces unverified production and test code that the team must support.
Scylla client routes/private-endpoint support is preserved.
Validation
mvn -pl core clean test— 3,955 unit tests and 76 Reactive Streams TCK checks passed.mvn -pl core -DskipTests verifymvn -pl examples -DskipTests package-Pfast/missing-sources incompatibility.Dependencies: none. Cherry-picked commits: none.