Skip to content
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

Native cql changes #606

Merged
merged 85 commits into from
Nov 15, 2023
Merged

Native cql changes #606

merged 85 commits into from
Nov 15, 2023

Conversation

maheshrajamani
Copy link
Contributor

@maheshrajamani maheshrajamani commented Oct 30, 2023

What this PR does:

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

kathirsvn and others added 30 commits October 23, 2023 14:52
@maheshrajamani maheshrajamani marked this pull request as ready for review November 14, 2023 18:29
@maheshrajamani maheshrajamani requested a review from a team as a code owner November 14, 2023 18:29
Copy link
Contributor

@jeffreyscarpenter jeffreyscarpenter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of great work in here. My main concerns are:

  • We still have quite a bit of usage of bridge / gRPC proto classes. Should we create a followup ticket to complete this removal?
  • There appear to be quite a few tests that are still disabled. Which of these will be re-enabled before we merge this PR?

.github/workflows/continuous-integration.yaml Outdated Show resolved Hide resolved
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;

@QuarkusTest
@Disabled
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we planning to re-enable this test at some point?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to figure out how to mock AsyncResultSet., then can be re-enabled.

import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;

@QuarkusTest
@Disabled
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When do we plan to re-enable?

@@ -44,7 +65,7 @@ public void partitionColumnsTooMany() {
QueryOuterClass.ColumnSpec.newBuilder().setName("key2").build())
.build();

boolean result = tableMatcher.test(table);
boolean result = tableMatcher.test(null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm wondering why this would be null? here and other cases below. I do see this class is disabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the data structures in JsonapiTable have been changed and I have to rewrite all the unit tests. To save time, I didn't do that and just replaced the null to avoid the compile error. I will fix that later with all the unit tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Hazel-Datastax Can you create an issue to fix this so can be taken at later time?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@@ -0,0 +1,264 @@
//
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is temporary right? Are we planning to remove this class copied from main stargate repo prior to merging? (Presumably because Stargate version is updated with what we need)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes., Will remove this once the stargate api release is done.

String localDatacenter();

/** Time to live for CQLSession in cache in seconds. */
@WithDefault("300")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure we really want 5 minutes over 1 -- this is not time-to-live for connection (AFAIK) but time unused connection remains for reuse after last call. That is, idle wait.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When session is evicted from cache, the session will be closed. Changed to 300 as per yesterday's conversation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also these values can be override using environment value in the chart.

Copy link
Contributor

@jeffreyscarpenter jeffreyscarpenter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes based on review feedback are complete and issues were created for follow up items, approving.

@maheshrajamani maheshrajamani merged commit 5113edc into main Nov 15, 2023
3 checks passed
@maheshrajamani maheshrajamani deleted the native_cql_changes branch November 15, 2023 18:21
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.

6 participants