-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cosmos Encryption removed block() in implementation #14529
Cosmos Encryption removed block() in implementation #14529
Conversation
moderakh
commented
Aug 27, 2020
•
edited
Loading
edited
- This PR has 0 change in azure-cosmos
- This PR scope is to remove block() calls in cosmos-encryption lib implementation.
...osmos-encryption/src/main/java/com/azure/cosmos/encryption/AzureKeyVaultKeyWrapProvider.java
Outdated
Show resolved
Hide resolved
...encryption/src/main/java/com/azure/cosmos/implementation/encryption/CachedDekProperties.java
Outdated
Show resolved
Hide resolved
|
||
CosmosItemRequestOptions effectiveRequestOptions = requestOptions != null ? requestOptions : new CosmosItemRequestOptions(); | ||
|
||
effectiveRequestOptions.setIfMatchETag(dekProperties.eTag); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are modifying the passed in request options here. Wouldn't it be better to create a deep copy instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed. good point. thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of NITs - but otherwise LGTM