Skip to content

Promote ReadConsistencyStrategy and Http2ConnectionConfig to GA#49345

Open
FabianMeiswinkel wants to merge 3 commits into
Azure:mainfrom
FabianMeiswinkel:users/fabianm/BetaRemoval
Open

Promote ReadConsistencyStrategy and Http2ConnectionConfig to GA#49345
FabianMeiswinkel wants to merge 3 commits into
Azure:mainfrom
FabianMeiswinkel:users/fabianm/BetaRemoval

Conversation

@FabianMeiswinkel
Copy link
Copy Markdown
Member

@FabianMeiswinkel FabianMeiswinkel commented Jun 2, 2026

Description

Removing @Beta annotations for Http2ConnectionConfig and ReadConsistencyStrategy related APIs.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copilot AI review requested due to automatic review settings June 2, 2026 15:26
@FabianMeiswinkel FabianMeiswinkel requested review from a team and kirankumarkolli as code owners June 2, 2026 15:26
@github-actions github-actions Bot added the Cosmos label Jun 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 @Beta annotations from ReadConsistencyStrategy and its related request option APIs.
  • Removed @Beta annotations from Http2ConnectionConfig and its gateway configuration accessors.
  • Updated sdk/cosmos/azure-cosmos/CHANGELOG.md to 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

Comment thread sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/Http2ConnectionConfig.java Outdated
Copy link
Copy Markdown
Member

@xinlian12 xinlian12 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

Copy link
Copy Markdown
Member

@kushagraThapar kushagraThapar left a comment

Choose a reason for hiding this comment

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

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.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this still true?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants