-
Notifications
You must be signed in to change notification settings - Fork 16
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
Native cql changes #606
Changes from all commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
ad94017
Query Executor interface for CQL
kathirsvn 54ee2ec
[Native Protocol] Create and delete collection command changes (#581)
maheshrajamani 02055dd
Cache changes (#582)
kathirsvn f74b0e8
[Native Protocol]Changes for InsertOperation (#586)
maheshrajamani 40bc367
[Native Protocol] Read and count operation (#589)
maheshrajamani 3a858f5
ReadAndUpdateOperation changes for native driver (#588)
kathirsvn 136fa76
Fix for empty filter
maheshrajamani 67ccba4
Changes for delete command
maheshrajamani f9836a9
Changes for keyspace commands
maheshrajamani 44a19c7
CQL Session changes
kathirsvn 849e55c
Fix for filter clauses
maheshrajamani d5bc2a0
Merge branch 'native_cql_changes' of https://github.com/stargate/json…
maheshrajamani 4c49fa8
Logging added
kathirsvn 83694ad
Fixed code for boolean sort
maheshrajamani 82a6c2d
Merge branch 'native_cql_changes' of https://github.com/stargate/json…
maheshrajamani bea0649
CQL session fix
kathirsvn 2f46109
Merge branch 'native_cql_changes' of github.com:stargate/jsonapi into…
kathirsvn 0832de8
CQL session fix
kathirsvn a1abb8a
Set default value to null so no need to serialize the key
maheshrajamani d39c199
Merge branch 'native_cql_changes' of https://github.com/stargate/json…
maheshrajamani 94d98f6
CQL session cache key fix
kathirsvn 0575802
Merge branch 'native_cql_changes' of github.com:stargate/jsonapi into…
kathirsvn 92e0e85
CQL session cache key fix
kathirsvn b874e52
IT bug fixes
maheshrajamani 983420c
Avoid creating bridge Values
maheshrajamani 70944a2
Moved cache configurations to quarkus properties
kathirsvn bdbe639
CqlSessionCache key changes
kathirsvn d806343
Merge branch 'native_cql_changes' of github.com:stargate/jsonapi into…
kathirsvn e6090b5
CQL session cache eviction listener added
kathirsvn 873193c
getSessionCacheKey method improvement
kathirsvn a7c8763
CQL session config file based driver changes and metrics changes
kathirsvn 4d0ee75
Fix running it (#601)
maheshrajamani d640c0a
Changes to use token as cache key for OSS cassandra when present in t…
kathirsvn d1ab1cd
Metrics changes
kathirsvn 6f44428
Fixed Auth token changes for IT
kathirsvn 90ffc3f
Fixed driver metrics conf
kathirsvn 9dda913
Added histogram metrics
maheshrajamani 873e04f
Removed run on subscription
maheshrajamani 57d465a
Added http request histogram
maheshrajamani 13d83a7
JAVA_OPTIONS change
kathirsvn 77f47af
cql branch, Error mapping, IT fix (#610)
Yuqi-Du 89d8024
JAVA_OPTIONS change reverted
kathirsvn b87a21f
Merge branch 'native_cql_changes' of github.com:stargate/jsonapi into…
kathirsvn 470bf43
Session metrics id generator changes
kathirsvn 898042b
Fixed the unit test for metrics to ignore histogram metrics
maheshrajamani ad7260e
Merge branch 'native_cql_changes' of https://github.com/stargate/json…
maheshrajamani 54f9c34
Merge changes from `main` to `native_cql_changes` (#615)
tatu-at-datastax 44ad4c5
Merge branch 'main' into native_cql_changes (resolve conflicts)
tatu-at-datastax 6f073d4
restore DeleteOneCommandResolverTest.java
Yuqi-Du 7c66e93
merge main to native_cql_branch (#616)
Yuqi-Du 69f16c3
Fix #617: increase Java driver local connection pool size to 8
tatu-at-datastax 43f4af3
Merge branch 'main' into native_cql_changes
tatu-at-datastax 8fc63fc
Merge branch 'main' into native_cql_changes
tatu-at-datastax a512a5f
fix pagination (#629)
Yuqi-Du ac60b87
Merge remote-tracking branch 'origin/main' into native_cql_changes
Yuqi-Du 2e47383
Merge branch 'main' into native_cql_changes
tatu-at-datastax 6600ccd
Added few tests for cql session cache
kathirsvn a386cd2
Merge branch 'native_cql_changes' of github.com:stargate/jsonapi into…
kathirsvn 8170287
Added cache info to the log in the startup
kathirsvn 575f2b1
advanced.session-leak.threshold set to 0 to disable logging warning w…
kathirsvn ee34e60
Schema cache refactor based on Session.metadata (#594)
Hazel-Datastax edcc68e
Dead code removal from test
tatu-at-datastax 1a78d1c
Merge remote-tracking branch 'origin/main' into native_cql_changes
Yuqi-Du ef53c35
Fixed tests
kathirsvn fe04774
Fix for running IT in containerized mode. Will remove the StargateTes…
maheshrajamani f5b7215
Merge branch 'main' into native_cql_changes
tatu-at-datastax b55644e
Merge branch 'main' into native_cql_changes
tatu-at-datastax d13d3bc
Fix native-cql branch: $in with multiple same values (#638)
Yuqi-Du c055b33
IT passes. Finally!
Yuqi-Du 32be0e8
fix some unit tests
Yuqi-Du ac5cd48
Native image fix related to Reflection
kathirsvn 61ae37a
Code refactored
maheshrajamani 3d50b7b
Removed CI to run against push for native_cql_changes branch
maheshrajamani 2c09a54
Fixed executeRead consistency level
kathirsvn a657ef9
Merge branch 'native_cql_changes' of github.com:stargate/jsonapi into…
kathirsvn c911532
SessionCache ttl session increased to 300.
kathirsvn 63e3a1e
Cleaned up TODO marks and removed secure connect bundle config
kathirsvn 9a6b2ef
Changed debug to trace logs in CQLSessionCache
kathirsvn bb4b4cd
Merge branch 'main' into native_cql_changes
tatu-at-datastax 0f5b017
Fixed tests
kathirsvn 62d3fbe
Merge branch 'native_cql_changes' of github.com:stargate/jsonapi into…
kathirsvn 10c3669
Added JavaDoc to TenantAwareCqlSessionBuilder
kathirsvn a0ca6e0
Changes to avoid consistency level conversions
kathirsvn aa24af8
bridge package moved to cqldriver
kathirsvn e6d238d
Formatting fix
kathirsvn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/java/com/github/benmanes/caffeine/cache/ReflectionRegistration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.github.benmanes.caffeine.cache; | ||
|
||
import io.quarkus.runtime.annotations.RegisterForReflection; | ||
|
||
@RegisterForReflection(targets = {com.github.benmanes.caffeine.cache.PSAMS.class}) | ||
public class ReflectionRegistration { | ||
// This class is used only for annotation processing during build | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/io/stargate/sgv2/jsonapi/config/ConsistencyLevelConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package io.stargate.sgv2.jsonapi.config; | ||
|
||
import com.datastax.oss.driver.api.core.ConsistencyLevel; | ||
import com.datastax.oss.driver.api.core.DefaultConsistencyLevel; | ||
import org.eclipse.microprofile.config.spi.Converter; | ||
|
||
/** | ||
* Converts a string to a {@link ConsistencyLevel}, used in {@link OperationsConfig.QueriesConfig}. | ||
*/ | ||
public class ConsistencyLevelConverter implements Converter<ConsistencyLevel> { | ||
/** | ||
* @param value the string representation of a property value | ||
* @return the converted ConsistencyLevel | ||
*/ | ||
@Override | ||
public ConsistencyLevel convert(String value) | ||
throws IllegalArgumentException, NullPointerException { | ||
return DefaultConsistencyLevel.valueOf(value.toUpperCase()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.
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.
When session is evicted from cache, the session will be closed. Changed to 300 as per yesterday's conversation.
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.
Also these values can be override using environment value in the chart.