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

CosmosClientOptions: Fixes a bug causing ConsistentPrefix to be convert to BoundedStaleness #2198

Merged
merged 5 commits into from
Feb 8, 2021

Conversation

j82w
Copy link
Contributor

@j82w j82w commented Feb 8, 2021

Pull Request Template

Description

The bug was introduced in 3.1.0 in PR #541. The switch statement incorrectly converted ConsistentPrefix to bounded staleness. This removes the switch statements and adds unit tests to validate that the two types are always the same. It also adds end to end test to check the header settings.

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)
  • [] New feature (non-breaking change which adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [] This change requires a documentation update

Closing issues

To automatically close an issue: closes #2196

@j82w j82w added the bug Something isn't working label Feb 8, 2021
ealsur
ealsur previously approved these changes Feb 8, 2021
@j82w j82w merged commit 804693a into master Feb 8, 2021
@j82w j82w deleted the users/jawilley/bug/consistencyLevel branch February 8, 2021 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants