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

Client Encryption: Removes retry behavior for point operations during client encryption policy change. #2648

Merged
merged 58 commits into from
Dec 14, 2021

Conversation

kr-santosh
Copy link
Contributor

@kr-santosh kr-santosh commented Aug 3, 2021

Description

This PR brings in the following changes and fixes

  • changes the retry logic where few operations (create/read/upsert etc) were retried upon failure due to policy changes. With this PR this retry has been removed and we just refresh the policy. This is to align with and have a uniform behavior across, since few operations like batch, feed cannot be retried, and the stream dispose behavior (when operation fails) seems to be inconsistent with bulk.

  • adds fix for patch operation to pick up (and refresh the cache with) the correct encryption policy when the client has cached incorrect/stale policy which can happen when container is deleted and recreated with same id but with a different encryption policy.

Type of change

  • [] Bug fix (non-breaking change which fixes an issue)

anujtoshniwal
anujtoshniwal previously approved these changes Aug 19, 2021
@kr-santosh kr-santosh changed the title Client Encryption: Adds fix for Patch operation to use the correct encryption policy, modifies operation retry behaviour and custom package fixes. Client Encryption: Adds fix for Patch operation to use the correct encryption policy, modifies operation retry behaviour. Oct 29, 2021
@kr-santosh kr-santosh changed the title Client Encryption: Adds fix for Patch operation to use the correct encryption policy, modifies operation retry behaviour. Client Encryption: (Needs Dicussion)Adds fix for Patch operation to use the correct encryption policy, modifies operation retry behaviour. Oct 29, 2021
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.

Directory.Build.props Outdated Show resolved Hide resolved
@kr-santosh kr-santosh changed the title Client Encryption: (Needs Dicussion)Adds fix for Patch operation to use the correct encryption policy, modifies operation retry behaviour. Client Encryption: Adds fix to change retry behaviour during client encryption policy change. Dec 7, 2021
@kr-santosh kr-santosh changed the title Client Encryption: Adds fix to change retry behaviour during client encryption policy change. Client Encryption: Adds fix to change operation retry behaviour during client encryption policy change. Dec 7, 2021
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.

@kr-santosh kr-santosh changed the title Client Encryption: Adds fix to change operation retry behaviour during client encryption policy change. Client Encryption: Adds changes to operation retry behaviour during client encryption policy change. Dec 7, 2021
@j82w j82w changed the title Client Encryption: Adds changes to operation retry behaviour during client encryption policy change. Client Encryption : Adds changes to operation retry behavior during client encryption policy change. Dec 7, 2021
@j82w j82w changed the title Client Encryption : Adds changes to operation retry behavior during client encryption policy change. Client Encryption: Adds changes to operation retry behavior during client encryption policy change. Dec 7, 2021
Copy link
Contributor

@abhijitpai abhijitpai left a comment

Choose a reason for hiding this comment

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

:shipit:

@j82w j82w changed the title Client Encryption: Adds changes to operation retry behavior during client encryption policy change. Client Encryption: Removes retry behavior for point operations during client encryption policy change. Dec 14, 2021
@j82w j82w merged commit dd31c66 into master Dec 14, 2021
@j82w j82w deleted the users/sakulk/bugfixes2 branch December 14, 2021 17:25
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.

6 participants