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

Database.ReadThroughputAsync throw CosmosException if no database throughput #696

Closed
donghexu opened this issue Aug 14, 2019 · 1 comment · Fixed by #772
Closed

Database.ReadThroughputAsync throw CosmosException if no database throughput #696

donghexu opened this issue Aug 14, 2019 · 1 comment · Fixed by #772
Assignees

Comments

@donghexu
Copy link

We are continuously addressing and improving the SDK, if possible, make sure the problem persist in the latest SDK version.

Describe the bug
Database.ReadThroughputAsync() throws CosmosException in 3.1.1, if there is no database throughput. In 3.0.0, it returns Nullable as expected.

To Reproduce
Create a database without throughput, and use 3.1.1 to read the throughput, it will throw exception.

Expected behavior
Should be consistent with 3.0.0 behavior, which returns nullable.

Actual behavior
Throw CosmosException

Environment summary
SDK Version: 3.1.1
OS Version (e.g. Windows, Linux, MacOSX) Windows

@j82w
Copy link
Contributor

j82w commented Aug 14, 2019

@simplynaveen20 is this a regression?

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 a pull request may close this issue.

3 participants