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

[Internal] PartitionMerge: Adds SDKSupportedCapabilities to hint that SDK supports merge #3111

Merged

Conversation

ramarag
Copy link
Contributor

@ramarag ramarag commented Mar 22, 2022

With PR: #3015, we attempted to use v2019_10_14 as the minimum API version to indicate to CosmosDB service that the SDK is merge proof. Unfortunately, Java SDK had already introduced a higher API version v2020_07_15 (https://github.com/Azure/azure-sdk-for-java/blob/d70090131c407a57a75d1cafeb0dcef566a48315/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/HttpConstants.java#L285), without having the support for merge.
This will break the check in the backend to use API version to determine if merge support is present in the SDK

In this PR we are introducing SDKSupportedCapabilities, a header is passed to backend to indicate the merge support has been added.

We still plan to block sdks that do not have support when partition merge feature will be turned on in the service.

@ramarag ramarag force-pushed the users/ramarag/addMergeSDKSupportedCapabilities branch from 8e09505 to ce8cc01 Compare March 24, 2022 19:19
ealsur
ealsur previously approved these changes Mar 24, 2022
j82w
j82w previously approved these changes Mar 24, 2022
@ramarag ramarag dismissed stale reviews from j82w and ealsur via 8f996f1 March 24, 2022 20:52
@ramarag ramarag force-pushed the users/ramarag/addMergeSDKSupportedCapabilities branch from e338259 to 8f996f1 Compare March 24, 2022 20:52
@ramarag ramarag force-pushed the users/ramarag/addMergeSDKSupportedCapabilities branch from 8f996f1 to 947737c Compare March 24, 2022 20:54
@ealsur ealsur enabled auto-merge (squash) March 24, 2022 21:04
@j82w j82w changed the title [Internal][PartitionMerge] Add SDKSupportedCapabilities to hint that SDK has merge [Internal] PartitionMerge: Adds SDKSupportedCapabilities to hint that SDK supports merge Mar 24, 2022
@ealsur ealsur merged commit a2e910a into Azure:master Mar 24, 2022
@@ -112,7 +112,7 @@ static CosmosClient()
#if PREVIEW
HttpConstants.Versions.CurrentVersion = HttpConstants.Versions.v2020_07_15;
#else
HttpConstants.Versions.CurrentVersion = HttpConstants.Versions.v2019_10_14;
HttpConstants.Versions.CurrentVersion = HttpConstants.Versions.v2018_12_31;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

changing the API version back

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.

4 participants