Skip to content

[tests] Cosmos emulator issue - AddAzureCosmosDB_RunAsEmulator_CreatesDatabase #7178

@davidfowl

Description

@davidfowl

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=922261
Build error leg or test failing: Aspire.Hosting.Azure.Tests.AzureCosmosDBEmulatorFunctionalTests.AddAzureCosmosDB_RunAsEmulator_CreatesDatabase
Pull request: #7152

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: NotFound (404)",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Details

Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success:
Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: NotFound (404); Substatus: 0; ActivityId: 531f9f3c-e622-47d8-8c84-2f1006667aef; Reason: (
code : NotFound
message : Message: 
{"Errors":["Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success:"]}
ActivityId: 531f9f3c-e622-47d8-8c84-2f1006667aef, Request URI: /apps/DocDbApp/services/DocDbMaster0/partitions/780e44f4-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, RequestStats:
RequestStartTime: 2025-04-16T18:17:30.5614804Z, RequestEndTime: 2025-04-16T18:17:30.5737388Z,  Number of regions attempted:1
{"systemHistory":[{"dateUtc":"2025-04-16T18:16:40.1072073Z","cpu":100.000,"memory":11629576.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0783,"availableThreads":32766,"minThreads":4,"maxThreads":32767},"numberOfOpenTcpConnection":1},{"dateUtc":"2025-04-16T18:16:50.1071598Z","cpu":100.000,"memory":11630072.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.051,"availableThreads":32766,"minThreads":4,"maxThreads":32767},"numberOfOpenTcpConnection":1},{"dateUtc":"2025-04-16T18:17:00.1081499Z","cpu":100.000,"memory":11628280.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0607,"availableThreads":32766,"minThreads":4,"maxThreads":32767},"numberOfOpenTcpConnection":1},{"dateUtc":"2025-04-16T18:17:10.1093623Z","cpu":100.000,"memory":11630584.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0582,"availableThreads":32766,"minThreads":4,"maxThreads":32767},"numberOfOpenTcpConnection":2},{"dateUtc":"2025-04-16T18:17:20.1105996Z","cpu":100.000,"memory":11630852.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0489,"availableThreads":32766,"minThreads":4,"maxThreads":32767},"numberOfOpenTcpConnection":2},{"dateUtc":"2025-04-16T18:17:30.1073150Z","cpu":100.000,"memory":11630984.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.064,"availableThreads":32765,"minThreads":4,"maxThreads":32767},"numberOfOpenTcpConnection":1}]}
RequestStart: 2025-04-16T18:17:30.5655563Z; ResponseTime: 2025-04-16T18:17:30.5737388Z; StoreResult: StorePhysicalAddress: rntbd://172.18.0.2:10251/apps/DocDbApp/services/DocDbMaster0/partitions/780e44f4-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, LSN: 3, GlobalCommittedLsn: -1, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#3, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.317, ActivityId: 531f9f3c-e622-47d8-8c84-2f1006667aef, RetryAfterInMs: , ReplicaHealthStatuses: [(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30)], TransportRequestTimeline: {"requestTimeline":[{"event": "Created", "startTimeUtc": "2025-04-16T18:17:30.5614804Z", "durationInMs": 0.0397},{"event": "ChannelAcquisitionStarted", "startTimeUtc": "2025-04-16T18:17:30.5615201Z", "durationInMs": 0.003},{"event": "Pipelined", "startTimeUtc": "2025-04-16T18:17:30.5615231Z", "durationInMs": 4.1995},{"event": "Transit Time", "startTimeUtc": "2025-04-16T18:17:30.5657226Z", "durationInMs": 1.0226},{"event": "Received", "startTimeUtc": "2025-04-16T18:17:30.5667452Z", "durationInMs": 0.381},{"event": "Completed", "startTimeUtc": "2025-04-16T18:17:30.5671262Z", "durationInMs": 0}],"serviceEndpointStats":{"inflightRequests":1,"openConnections":1},"connectionStats":{"waitforConnectionInit":"False","callsPendingReceive":0,"lastSendAttempt":"2025-04-16T18:17:30.3315763Z","lastSend":"2025-04-16T18:17:30.3315763Z","lastReceive":"2025-04-16T18:17:30.3315763Z"},"requestSizeInBytes":454,"responseMetadataSizeInBytes":170,"responseBodySizeInBytes":84};
 ResourceType: Database, OperationType: Read
RequestStart: 2025-04-16T18:17:30.5696565Z; ResponseTime: 2025-04-16T18:17:30.5737388Z; StoreResult: StorePhysicalAddress: rntbd://172.18.0.2:10251/apps/DocDbApp/services/DocDbMaster0/partitions/780e44f4-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, LSN: 3, GlobalCommittedLsn: -1, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#3, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.169, ActivityId: 531f9f3c-e622-47d8-8c84-2f1006667aef, RetryAfterInMs: , ReplicaHealthStatuses: [(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30)], TransportRequestTimeline: {"requestTimeline":[{"event": "Created", "startTimeUtc": "2025-04-16T18:17:30.5655563Z", "durationInMs": 0.0037},{"event": "ChannelAcquisitionStarted", "startTimeUtc": "2025-04-16T18:17:30.5655600Z", "durationInMs": 0.0013},{"event": "Pipelined", "startTimeUtc": "2025-04-16T18:17:30.5655613Z", "durationInMs": 0.9811},{"event": "Transit Time", "startTimeUtc": "2025-04-16T18:17:30.5665424Z", "durationInMs": 1.4451},{"event": "Received", "startTimeUtc": "2025-04-16T18:17:30.5679875Z", "durationInMs": 0.0552},{"event": "
Completed", "startTimeUtc": "2025-04-16T18:17:30.5680427Z", "durationInMs": 0}],"serviceEndpointStats":{"inflightRequests":4,"open
ActivityId: 531f9f3c-e622-47d8-8c84-2f1006667aef, Request URI: /apps/DocDbApp/services/DocDbMaster0/partitions/780e44f4-38c8-11e6-
8106-8cdcd42c33be/replicas/1p/, RequestStats:
RequestStartTime: 2025-04-16T18:17:30.5614804Z, RequestEndTime: 2025-04-16T18:17:30.5737388Z,  Number of regions attempted:1
{"systemHistory":[{"dateUtc":"2025-04-16T18:16:40.1072073Z","cpu":100.000,"memory":11629576.000,"threadInfo":{"isThreadStarving":"
False","threadWaitIntervalInMs":0.0783,"availableThreads":32766,"minThreads":4,"maxThreads":32767},"numberOfOpenTcpConnection":1},
{"dateUtc":"2025-04-16T18:16:50.1071598Z","cpu":100.000,"memory":11630072.000,"threadInfo":{"isThreadStarving":"False","threadWait
IntervalInMs":0.051,"availableThreads":32766,"minThreads":4,"maxThreads":32767},"numberOfOpenTcpConnection":1},{"dateUtc":"2025-04
-16T18:17:00.1081499Z","cpu":100.000,"memory":11628280.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.060
7,"availableThreads":32766,"minThreads":4,"maxThreads":32767},"numberOfOpenTcpConnection":1},{"dateUtc":"2025-04-16T18:17:10.10936
23Z","cpu":100.000,"memory":11630584.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0582,"availableThread
s":32766,"minThreads":4,"maxThreads":32767},"numberOfOpenTcpConnection":2},{"dateUtc":"2025-04-16T18:17:20.1105996Z","cpu":100.000
,"memory":11630852.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.0489,"availableThreads":32766,"minThrea
ds":4,"maxThreads":32767},"numberOfOpenTcpConnection":2},{"dateUtc":"2025-04-16T18:17:30.1073150Z","cpu":100.000,"memory":11630984
.000,"threadInfo":{"isThreadStarving":"False","threadWaitIntervalInMs":0.064,"availableThreads":32765,"minThreads":4,"maxThreads":
32767},"numberOfOpenTcpConnection":1}]}
RequestStart: 2025-04-16T18:17:30.5655563Z; ResponseTime: 2025-04-16T18:17:30.5737388Z; StoreResult: StorePhysicalAddress: rntbd:/
/172.18.0.2:10251/apps/DocDbApp/services/DocDbMaster0/partitions/780e44f4-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, LSN: 3, Global
CommittedLsn: -1, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionT
oken: -1#3, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.317, ActivityId: 531f9f3c-e622-47d8-8c84-2f1006667aef,
RetryAfterInMs: , ReplicaHealthStatuses: [(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknow
n | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/
16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:1
7:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port:
 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | sta
tus: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30)], TransportRequestTimeline: {"
requestTimeline":[{"event": "Created", "startTimeUtc": "2025-04-16T18:17:30.5614804Z", "durationInMs": 0.0397},{"event": "ChannelA
cquisitionStarted", "startTimeUtc": "2025-04-16T18:17:30.5615201Z", "durationInMs": 0.003},{"event": "Pipelined", "startTimeUtc":
"2025-04-16T18:17:30.5615231Z", "durationInMs": 4.1995},{"event": "Transit Time", "startTimeUtc": "2025-04-16T18:17:30.5657226Z",
"durationInMs": 1.0226},{"event": "Received", "startTimeUtc": "2025-04-16T18:17:30.5667452Z", "durationInMs": 0.381},{"event": "Co
mpleted", "startTimeUtc": "2025-04-16T18:17:30.5671262Z", "durationInMs": 0}],"serviceEndpointStats":{"inflightRequests":1,"openCo
nnections":1},"connectionStats":{"waitforConnectionInit":"False","callsPendingReceive":0,"lastSendAttempt":"2025-04-16T18:17:30.33
15763Z","lastSend":"2025-04-16T18:17:30.3315763Z","lastReceive":"2025-04-16T18:17:30.3315763Z"},"requestSizeInBytes":454,"response
MetadataSizeInBytes":170,"responseBodySizeInBytes":84};
 ResourceType: Database, OperationType: Read
RequestStart: 2025-04-16T18:17:30.5696565Z; ResponseTime: 2025-04-16T18:17:30.5737388Z; StoreResult: StorePhysicalAddress: rntbd:/
/172.18.0.2:10251/apps/DocDbApp/services/DocDbMaster0/partitions/780e44f4-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, LSN: 3, Global
CommittedLsn: -1, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionT
oken: -1#3, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.169, ActivityId: 531f9f3c-e622-47d8-8c84-2f1006667aef,
RetryAfterInMs: , ReplicaHealthStatuses: [(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknow
n | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/
16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:1
7:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port:
 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | sta
tus: Unknown | lkt: 04/16/2025 18:17:30),(port: 10251 | status: Unknown | lkt: 04/16/2025 18:17:30)], TransportRequestTimeline: {"
requestTimeline":[{"event": "Created", "startTimeUtc": "2025-04-16T18:17:30.5655563Z", "durationInMs": 0.0037},{"event": "ChannelA
cquisitionStarted", "startTimeUtc": "2025-04-16T18:17:30.5655600Z", "durationInMs": 0.0013},{"event": "Pipelined", "startTimeUtc":
 "2025-04-16T18:17:30.5655613Z", "durationInMs": 0.9811},{"event": "Transit Time", "startTimeUtc": "2025-04-16T18:17:30.5665424Z",
 "durationInMs": 1.4451},{"event": "Received", "startTimeUtc": "2025-04-16T18:17:30.5679875Z", "durationInMs": 0.0552},{"event": "
Completed", "startTimeUtc": "2025-04-16T18:17:30.5680427Z", "durationInMs": 0}],"serviceEndpointStats":{"inflightRequests":4,"open
Connections":1},"connectionStats":{"waitforConnectionInit":"False","callsPendingReceive":3,"lastSendAttempt":"2025-04-16T18:17:30.5655563Z","lastSend":"2025-04-16T18:17:30.5655563Z","lastReceive":"2025-04-16T18:17:30.3315763Z"},"requestSizeInBytes":454,"responseMetadataSizeInBytes":170,"responseBodySizeInBytes":84};
 ResourceType: Database, OperationType: Read
, SDK: Microsoft.Azure.Documents.Common/2.14.0
);   at Microsoft.Azure.Cosmos.ClientContextCore.RunWithDiagnosticsHelperAsync[TResult](String containerName, String databaseName, OperationType operationType, ITrace trace, Func`2 task, Nullable`1 openTelemetry, RequestOptions requestOptions, Nullable`1 resourceType)
   at Microsoft.Azure.Cosmos.ClientContextCore.OperationHelperWithRootTraceAsync[TResult](String operationName, String containerName, String databaseName, OperationType operationType, RequestOptions requestOptions, Func`2 task, Nullable`1 openTelemetry, TraceComponent traceComponent, TraceLevel traceLevel, Nullable`1 resourceType)
   at Aspire.Hosting.Azure.Tests.AzureCosmosDBEmulatorFunctionalTests.AddAzureCosmosDB_RunAsEmulator_CreatesDatabase() in /_/tests/Aspire.Hosting.Azure.Tests/AzureCosmosDBEmulatorFunctionalTests.cs:line 304
--- End of stack trace from previous location ---
...

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Report for PRs and Rolling builds

Last 10 failures:

Run date Test Name

Summary of the failures

Last 24 hrs Last 7 days Last 30 days
0 0 0

-- Updated on 8/7/2025 6:22:05 PM UTC

Known issue validation

Build: 🔎
Result validation: ⚠️ Provided build not found. Provide a valid build in the "Build: 🔎" line.
Validation performed at: 4/17/2025 10:21:20 PM UTC

Known issue validation

Build: 🔎
Result validation: ⚠️ Provided build not found. Provide a valid build in the "Build: 🔎" line.
Validation performed at: 4/17/2025 10:22:54 PM UTC

Known issue validation

Build: 🔎
Result validation: ⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.
Validation performed at: 5/21/2025 2:19:14 AM UTC

Known issue validation

Build: 🔎
Result validation: ⚠️ Provided build not found. Provide a valid build in the "Build: 🔎" line.
Validation performed at: 5/21/2025 2:22:13 AM UTC

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions