[Draft: Not for review] Changes to use Existing cassandra io for Bulk Cassandra Read with SSL
Overview
Changes to use Existing CassandraIO for Cassandra Bulk Read.
Note on Techdept
The existing CassandraIO works with Cassandra Driver's 3.0 interfaces. This would mean that we won't get out of box support for all the new features and configurations that 4.0 driver provides out of box. With this PR we are enabling the most basic use case of reading a primitive types on SSL enabled Cluster with client side validation. Mutual TLS and other advanced options are not implemented currently. The strategy to eliminate this techdebt is to enable 4.0 in upstream code, once the Cassandra Bulk is working for basic use cases. Till then, if we see any specific customer use case, we can manually incorporate it (the way SSL is currently handled).
PR Tree:
At the moment the PR is large. To de-risk having a lot of code for review, we have raised 2 child PRs:
- #2129 - Has the first 2 commits, and gets basic CassandraIO working.
- #2130 - UT only code to have an ssl enabled Cassandra Server for UT.
- #2114 - The Current PR which in addition to #2129 and #2130 also enables Read from SSL enabled Cassandra Clusters for the most basic use case. This PR will become smaller once #2129 and #2130 are merged to main line.
Codecov Report
Attention: Patch coverage is 95.00000% with 2 lines in your changes missing coverage. Please review.
Project coverage is 54.97%. Comparing base (
7147be4) to head (c5a53e4). Report is 2 commits behind head on main.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| ...er/CassandraTableReaderFactoryCassandraIoImpl.java | 94.28% | 1 Missing and 1 partial :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #2114 +/- ##
============================================
+ Coverage 46.61% 54.97% +8.35%
+ Complexity 4278 1608 -2670
============================================
Files 868 406 -462
Lines 51581 21864 -29717
Branches 5401 2161 -3240
============================================
- Hits 24046 12019 -12027
+ Misses 25815 9147 -16668
+ Partials 1720 698 -1022
| Components | Coverage Δ | |
|---|---|---|
| spanner-templates | 70.43% <98.60%> (+1.83%) |
:arrow_up: |
| spanner-import-export | ∅ <ø> (∅) |
|
| spanner-live-forward-migration | 77.51% <ø> (+0.02%) |
:arrow_up: |
| spanner-live-reverse-replication | 78.45% <ø> (+0.02%) |
:arrow_up: |
| spanner-bulk-migration | 87.91% <98.60%> (+0.24%) |
:arrow_up: |
| Files with missing lines | Coverage Δ | |
|---|---|---|
| ...der/io/cassandra/iowrapper/SSLOptionsProvider.java | 100.00% <100.00%> (ø) |
|
| ...er/CassandraTableReaderFactoryCassandraIoImpl.java | 97.05% <94.28%> (ø) |
This pull request has been marked as stale due to 180 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time. Thank you for your contributions.
This pull request has been closed due to lack of activity. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.