-
Notifications
You must be signed in to change notification settings - Fork 885
CASSJAVA-89 Fix remove deprecated config chunk_length_kb #2029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 4.x
Are you sure you want to change the base?
Conversation
4ab80fa
to
be6cd82
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking pretty good to me, I had some suggestions, willing to follow up with another quick review based on your thoughts!
...y-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/schema/RelationOptions.java
Outdated
Show resolved
Hide resolved
...y-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/schema/RelationOptions.java
Outdated
Show resolved
Hide resolved
...y-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/schema/RelationOptions.java
Show resolved
Hide resolved
...y-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/schema/RelationOptions.java
Outdated
Show resolved
Hide resolved
...y-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/schema/RelationOptions.java
Show resolved
Hide resolved
...y-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/schema/RelationOptions.java
Show resolved
Hide resolved
@tolbertam thanks for the review! I addressed most of your points. Lmk about the Zstd compressor, if I'm being dense and there's a better way, I'm all for it. |
Changes looking good to me. I'm out of town until Monday, but I'll work to find a second reviewer and do some testing with it when I get back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be open to adding an integration test to check query-builder paths? It would be good to get a test failure on future syntax changes like this one, rather than discovering the issue later when attempting to startup an application on the newer Cassandra version. You could follow com.datastax.oss.driver.querybuilder.JsonInsertIT
as an example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea. It looks like I need to do some more local setup to get integration tests running though. I can take a look at that in a few days.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs here: https://github.com/apache/cassandra-java-driver/blob/4.x/CONTRIBUTING.md#integration-tests
Let me know if you have any questions - happy to help you get set up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aratno I added 3 integration tests to cover the following cases.
- top-level
crc_check_chance
for C* >= 3.0 chunk_length_in_kb
for C* >= 5.0chunk_length_kb
for C* < 5.0
...y-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/schema/RelationOptions.java
Outdated
Show resolved
Hide resolved
...y-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/schema/RelationOptions.java
Outdated
Show resolved
Hide resolved
5d1b0ff
to
c182aa0
Compare
This fixes CASSJAVA-89 by switching from deprecated
chunk_length_kb
tochunk_length_in_kb