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

Adding a new Capability for accepting Rntbd headers #5068

Draft
wants to merge 3 commits into
base: msdata/direct
Choose a base branch
from

Conversation

dibahlfi
Copy link
Contributor

Pull Request Template

Description

This change is to add a new capability for accepting new Rntbd headers from the backend.

  • [] New feature (non-breaking change which adds functionality)

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"

Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@@ -11,6 +11,7 @@ internal enum SDKSupportedCapabilities : ulong
None = 0,
PartitionMerge = 1 << 0,
ChangeFeedWithStartTimePostMerge = 1 << 1,
ThroughputBucketing = 1 << 2
ThroughputBucketing = 1 << 2,
AcceptNewRntbdTokens = 1 << 3
Copy link
Member

Choose a reason for hiding this comment

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

Please make sure that JAVA SDK capabilites also aligns

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will talk to Abhijeet on the same on Monday.

@@ -11,6 +11,7 @@ internal enum SDKSupportedCapabilities : ulong
None = 0,
PartitionMerge = 1 << 0,
ChangeFeedWithStartTimePostMerge = 1 << 1,
ThroughputBucketing = 1 << 2
ThroughputBucketing = 1 << 2,
AcceptNewRntbdTokens = 1 << 3
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
AcceptNewRntbdTokens = 1 << 3
AcceptUnknownRntbdTokens = 1 << 3

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

[TestMethod]
public async Task VerifySDKCapabilitites()
{
// method to ensure passing new capabilities doesnt hurt the basic operations
Copy link
Member

Choose a reason for hiding this comment

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

By-default already capabilityis included and existing test corpus already covers it right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thats right. I just wanted to be 100%. I will remove this test.

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.

2 participants