Promote ReadConsistencyStrategy and Http2ConnectionConfig to GA#49345
Open
FabianMeiswinkel wants to merge 3 commits into
Open
Promote ReadConsistencyStrategy and Http2ConnectionConfig to GA#49345FabianMeiswinkel wants to merge 3 commits into
FabianMeiswinkel wants to merge 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR promotes the Cosmos ReadConsistencyStrategy and Http2ConnectionConfig APIs from preview to GA by removing @Beta annotations across the public API surface (request options, builder, diagnostics/context) and documenting the change in the Cosmos changelog.
Changes:
- Removed
@Betaannotations fromReadConsistencyStrategyand its related request option APIs. - Removed
@Betaannotations fromHttp2ConnectionConfigand its gateway configuration accessors. - Updated
sdk/cosmos/azure-cosmos/CHANGELOG.mdto reflect the GA promotion.
Show a summary per file
| File | Description |
|---|---|
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ReadConsistencyStrategy.java | Removes @Beta from the enum (GA promotion). |
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosRequestOptions.java | Removes @Beta from read consistency strategy getter/setter. |
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosReadManyRequestOptions.java | Removes @Beta from read consistency strategy getter/setter. |
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosReadManyByPartitionKeysRequestOptions.java | Removes @Beta from read consistency strategy getter/setter. |
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosQueryRequestOptions.java | Removes @Beta from read consistency strategy getter/setter. |
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosItemRequestOptions.java | Removes @Beta from read consistency strategy getter/setter. |
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosChangeFeedRequestOptions.java | Removes @Beta from read consistency strategy getter/setter on change feed request options. |
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/CosmosQueryRequestOptionsBase.java | Removes @Beta from base request options read consistency strategy APIs. |
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/Http2ConnectionConfig.java | Removes @Beta from the HTTP/2 config type and its accessors/mutators. |
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/GatewayConnectionConfig.java | Removes @Beta from HTTP/2 config getter/setter on gateway config. |
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosRequestContext.java | Removes @Beta from request-context accessor for read consistency strategy. |
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosDiagnosticsContext.java | Removes @Beta from diagnostics accessor for effective read consistency strategy. |
| sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosClientBuilder.java | Removes @Beta from the builder’s readConsistencyStrategy(...) API. |
| sdk/cosmos/azure-cosmos/CHANGELOG.md | Adds an unreleased entry noting GA promotion. |
Copilot's findings
- Files reviewed: 14/14 changed files
- Comments generated: 12
kushagraThapar
approved these changes
Jun 2, 2026
Member
kushagraThapar
left a comment
There was a problem hiding this comment.
LGTM with minor suggestions, thanks @FabianMeiswinkel
|
|
||
| /*** | ||
| * Configure the flag to indicate whether http2 is enabled. If null, the default value (`false` while | ||
| * in preview, `true` later) will be applied for http/2. |
Member
There was a problem hiding this comment.
we should update this doc to now true (since its GA now)?
| @@ -24,7 +23,6 @@ | |||
| * <p> | |||
| * NOTE: The ReadConsistencyStrategy is currently only working when using direct mode | |||
Member
There was a problem hiding this comment.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Removing
@Betaannotations forHttp2ConnectionConfigandReadConsistencyStrategyrelated APIs.All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines