Skip to content

[BUG] Version deployed to nuget are different #40

@yoonghan

Description

@yoonghan

Description

Believed that the version deployed in NuGET are different at least for dotNet 10. The version running requires an RU of 4000 to execute and if allowed will cost user USD 10 per day.

It can work if the account is configured to have limit of 4000 RU/s but if run from Azure CosmosDB this will cause the account holder of USD10 a day! Unfortunately i was billed 15 days to be aware this issue.

Problem Error Messages
Force to create table of 4000 RU/s Response status code does not indicate success: BadRequest (400); Substatus: 1028; ActivityId: 70c9e5f7-bfcd-42b2-b13f-d80b64d88aab; Reason: ({"code":"BadRequest","message":"Message: {"Errors":["Your account is currently configured with a total throughput limit of 1000 RU/s. This operation failed because it would have increased the total throughput to 4000 RU/s.
If database is created, force to use a container with 4000RUs Response status code does not indicate success: NotFound (404); Substatus: 0; ActivityId: ; Reason: (Throughput is not configured for e7dAAA==);

Printout message is different as well:

  1. Running from the NUGet it generates both Parsing connection string and Populating data, code ran directly from this project does not have "Populating data" printout.

Repro steps

Test 1.

  1. Run
~/.dotnet/tools/cosmicworks -c "AccountEndpoint=https://...documents.azure.com:443/;AccountKey=.." --number-of-employees 0 --disable-hierarchical-partition-keys
  1. Expected to create database and container. But error was:
Response status code does not indicate success: BadRequest (400); Substatus: 1028; ActivityId: 70c9e5f7-bfcd-42b2-b13f-d80b64d88aab; Reason: ({"code":"BadRequest","message":"Message: {\"Errors\":[\"Your account is currently configured with a total throughput limit of 1000 RU/s. This operation failed because it would have increased the total throughput to 4000 RU/s.

Test 2

  1. Goto Azure portal and create a database named 'container'
  2. Run
~/.dotnet/tools/cosmicworks -c "AccountEndpoint=https://...documents.azure.com:443/;AccountKey=.." --number-of-employees 0 --disable-hierarchical-partition-keys
  1. Codes create container with 400 throughput.
  2. Expected to populate data but error was:
Response status code does not indicate success: NotFound (404); Substatus: 0; ActivityId: ; Reason: (Throughput is not configured for e7dAAA==);

Expected behavior

  1. Should be able to create into Azure CosmosDB with default RU's
  2. Printout should be similar to codes where it should only display "Products configuration"

Screenshots

Image Image

Environment

[OS Platform] MacOS
[DOTNet version] 10.0.100-rc.1.25451.107
[VERSION]       2.3.1+f21cca5c0b0cb3d191671a307d0f26b8d2156966

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions