-
Notifications
You must be signed in to change notification settings - Fork 252
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 attachment missing field id #276
Comments
Error handling just needs to be updated. Similar to #270, the response status needs to be checked for success. To reproduce:
request body: {"id":"test-cosmos-db-attachment"} response body for HTTP status code 409: {
"code": "Conflict",
"message": "Message: {\"Errors\":[\"Resource with specified id, name, or unique index already exists.\"]}\r\nActivityId: 79186e83-164f-43ce-a42e-80190afeca92, Request URI: /apps/3ba0b0ed-c219-4d68-829c-9c648620ce16/services/3d792dfa-f2ed-430c-b40b-9860a1fa851e/partitions/d70eb249-68aa-42bb-8c7f-b8d490167a52/replicas/132657633109063235p, RequestStats: \r\nRequestStartTime: 2021-05-31T18:07:39.3739713Z, RequestEndTime: 2021-05-31T18:07:39.3839546Z, Number of regions attempted:1\r\nResponseTime: 2021-05-31T18:07:39.3839546Z, StoreResult: StorePhysicalAddress: rntbd://10.0.0.21:11300/apps/3ba0b0ed-c219-4d68-829c-9c648620ce16/services/3d792dfa-f2ed-430c-b40b-9860a1fa851e/partitions/d70eb249-68aa-42bb-8c7f-b8d490167a52/replicas/132657633109063235p, LSN: 511, GlobalCommittedLsn: 511, PartitionKeyRangeId: , IsValid: True, StatusCode: 409, SubStatusCode: 0, RequestCharge: 1.24, ItemLSN: -1, SessionToken: -1#511, UsingLocalLSN: False, TransportException: null, ResourceType: Database, OperationType: Create\r\nResponseTime: 2021-05-31T18:07:39.3839546Z, StoreResult: StorePhysicalAddress: rntbd://10.0.0.21:11300/apps/3ba0b0ed-c219-4d68-829c-9c648620ce16/services/3d792dfa-f2ed-430c-b40b-9860a1fa851e/partitions/d70eb249-68aa-42bb-8c7f-b8d490167a52/replicas/132657633109063235p, LSN: 511, GlobalCommittedLsn: 511, PartitionKeyRangeId: , IsValid: True, StatusCode: 409, SubStatusCode: 0, RequestCharge: 1.24, ItemLSN: -1, SessionToken: -1#511, UsingLocalLSN: False, TransportException: null, ResourceType: Database, OperationType: Create\r\nResponseTime: 2021-05-31T18:07:39.3839546Z, StoreResult: StorePhysicalAddress: rntbd://10.0.0.21:11300/apps/3ba0b0ed-c219-4d68-829c-9c648620ce16/services/3d792dfa-f2ed-430c-b40b-9860a1fa851e/partitions/d70eb249-68aa-42bb-8c7f-b8d490167a52/replicas/132657633109063235p, LSN: 511, GlobalCommittedLsn: 511, PartitionKeyRangeId: , IsValid: True, StatusCode: 409, SubStatusCode: 0, RequestCharge: 1.24, ItemLSN: -1, SessionToken: -1#511, UsingLocalLSN: False, TransportException: null, ResourceType: Database, OperationType: Create\r\n, SDK: Microsoft.Azure.Documents.Common/2.11.0"
} |
Can't seem to repro it: ✔ 18:25 ~/src/rust/azure-sdk-for-rust/sdk/cosmos/src [master {origin/master}|✔] $ cargo test --features test_e2e -p azure_cosmos --test attachment_00
Finished test [unoptimized + debuginfo] target(s) in 0.04s
Running tests/attachment_00.rs (/home/MINDFLAVOR/mindflavor/src/rust/azure-sdk-for-rust/target/debug/deps/attachment_00-a3ce96b7f67d0bbd)
running 1 test
test attachment ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 6.91s Can you please check if you have a |
Closing this as I cannot reproduce. We can open this again if we find out it is still an issue. |
The only e2e_test that fails after the #274 fixes is:
The text was updated successfully, but these errors were encountered: