forked from apache/cassandra-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 39
Initial implementation of SCYLLA_USE_METADATA_ID feature
#599
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
Merged
dkropachev
merged 14 commits into
scylladb:scylla-4.x
from
nikagra:scylla-4.x-use-metadataId
Oct 2, 2025
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
964c0f3
[#567] Initial implementation of `SCYLLA_USE_METADATA_ID` feature neg…
nikagra 321537a
[#597] Updating extension negotiation logic. Adding `ProtocolFeatures…
nikagra 70e0a64
[#597] Fixing unit tests.
nikagra 51a442b
[#597] Enhancing protocol feature handling.
nikagra 661e579
[#597] Changes following rebase.
nikagra 3fffb35
[#597] Switching `native-protocol` dependency.
nikagra 1794208
[#597] Fixing stubbing for update query in `ProfileIT`.
nikagra 29e3840
[#597] Fixing more stubbing for update query and `ConsistencyLevel.LO…
nikagra c695b60
[#597] Switching `simulacron-native-server` dependency.
nikagra 0ad6d0e
[#597] Updating groupId of `native-protocol` in `BundleOptions` (used…
nikagra 00d052d
[#597] Adding javadoc. Removing redundant comment.
nikagra 69dbbd7
[#597] Updating `MetadataIdInfo` method names.
nikagra d19e902
[#596] Refactoring functions that update pipeline. Moving building of…
nikagra 3e967d7
[#596] Setting default `EMPTY` value for `featureStore`, simplifying …
nikagra 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
26 changes: 26 additions & 0 deletions
26
core/src/main/java/com/datastax/oss/driver/internal/core/protocol/MetadataIdInfo.java
This file contains hidden or 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,26 @@ | ||
| package com.datastax.oss.driver.internal.core.protocol; | ||
|
|
||
| import java.util.List; | ||
| import java.util.Map; | ||
|
|
||
| public class MetadataIdInfo { | ||
| private static final String SCYLLA_USE_METADATA_ID_STARTUP_OPTION_KEY = "SCYLLA_USE_METADATA_ID"; | ||
| private static final String SCYLLA_USE_METADATA_ID_STARTUP_OPTION_VALUE = ""; | ||
|
|
||
| private MetadataIdInfo() {} | ||
|
|
||
| public static boolean loadFromSupportedOptions(Map<String, List<String>> supported) { | ||
| if (!supported.containsKey(SCYLLA_USE_METADATA_ID_STARTUP_OPTION_KEY)) { | ||
| return false; | ||
| } | ||
| List<String> values = supported.get(SCYLLA_USE_METADATA_ID_STARTUP_OPTION_KEY); | ||
| return values != null | ||
| && values.size() == 1 | ||
| && values.get(0).equals(SCYLLA_USE_METADATA_ID_STARTUP_OPTION_VALUE); | ||
| } | ||
|
|
||
| public static void populateStartupOptions(Map<String, String> options) { | ||
| options.put( | ||
| SCYLLA_USE_METADATA_ID_STARTUP_OPTION_KEY, SCYLLA_USE_METADATA_ID_STARTUP_OPTION_VALUE); | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.