Skip to content

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

Open
wants to merge 1 commit into
base: 4.x
Choose a base branch
from

Conversation

mkars10
Copy link

@mkars10 mkars10 commented Mar 21, 2025

This fixes CASSJAVA-89 by switching from deprecated chunk_length_kb to chunk_length_in_kb

@tolbertam tolbertam self-requested a review April 7, 2025 15:14
@mkars10 mkars10 force-pushed the CASSJAVA-89-deprecated-feature branch from 4ab80fa to be6cd82 Compare April 7, 2025 23:43
Copy link
Contributor

@tolbertam tolbertam left a 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!

@mkars10
Copy link
Author

mkars10 commented Jun 27, 2025

@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.

@tolbertam
Copy link
Contributor

@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.

Copy link
Contributor

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.

Copy link
Author

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.

Copy link
Contributor

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.

Copy link
Author

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.0
  • chunk_length_kb for C* < 5.0

@mkars10 mkars10 force-pushed the CASSJAVA-89-deprecated-feature branch from 5d1b0ff to c182aa0 Compare July 6, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants