Skip to content

ChangeFeedProcessor: Adds defensive regression coverage and changelog for AllVersionsAndDeletes cold-start fix (#5846) - #5852

Merged
Nalu Tripician (NaluTripician) merged 18 commits into
mainfrom
users/ntripician/fix-cfp-avad-cold-start-5846
Jun 18, 2026
Merged

ChangeFeedProcessor: Adds defensive regression coverage and changelog for AllVersionsAndDeletes cold-start fix (#5846)#5852
Nalu Tripician (NaluTripician) merged 18 commits into
mainfrom
users/ntripician/fix-cfp-avad-cold-start-5846

Merge remote-tracking branch 'origin/main' into nalutripician/fix-pr-…

3787c34
Select commit
Loading
Failed to load commit list.
Azure Pipelines / dotnet-v3-ci failed May 19, 2026 in 1h 0m 20s

Build #20260519.14 had test failures

Details

Tests

  • Failed: 4 (0.03%)
  • Passed: 12,573 (98.40%)
  • Other: 201 (1.57%)
  • Total: 12,778
Code coverage

  • 55285 of 97959 lines covered (56.44%)

Annotations

Check failure on line 2379 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Build log #L2379

Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1

Check failure on line 2384 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Build log #L2384

Dotnet command failed with non-zero exit code on the following projects : [
  'D:\\a\\_work\\1\\s\\Microsoft.Azure.Cosmos\\tests\\Microsoft.Azure.Cosmos.EmulatorTests\\Microsoft.Azure.Cosmos.EmulatorTests.csproj'
]

Check failure on line 3488 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Build log #L3488

Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1

Check failure on line 3493 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Build log #L3493

Dotnet command failed with non-zero exit code on the following projects : [
  'D:\\a\\_work\\1\\s\\Microsoft.Azure.Cosmos\\tests\\Microsoft.Azure.Cosmos.EmulatorTests\\Microsoft.Azure.Cosmos.EmulatorTests.csproj'
]

Check failure on line 1 in Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail

Test method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail threw exception: 
Microsoft.Azure.Cosmos.CosmosException: Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: 270ff089-9458-4714-b9d7-25fb41a98c94; Reason: (
Errors : [
  "The input ttl '0' is invalid. Ensure to provide a nonzero positive integer less than or equal to '2147483647', or '-1' which means never expire."
]
);
Raw output
    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) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 627
   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) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 277
   at Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\tests\Microsoft.Azure.Cosmos.EmulatorTests\CFP\AllVersionsAndDeletes\BuilderTests.cs:line 687
   at Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\tests\Microsoft.Azure.Cosmos.EmulatorTests\CFP\AllVersionsAndDeletes\BuilderTests.cs:line 702
   at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ExecutionContextService.<>c__DisplayClass3_0.<RunActionOnContext>b__0(Object _) in /_/src/Adapter/MSTestAdapter.PlatformServices/Services/ExecutionContextService.cs:line 70
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ExecutionContextService.RunActionOnContext(Action action, IExecutionContextScope executionContextScope) in /_/src/Adapter/MSTestAdapter.PlatformServices/Services/ExecutionContextService.cs:line 66

Check failure on line 1 in Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail

Test method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail threw exception: 
Microsoft.Azure.Cosmos.CosmosException: Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: b2e76f75-7ce5-4b20-8168-6cd4ce2be35b; Reason: (
Errors : [
  "The input ttl '0' is invalid. Ensure to provide a nonzero positive integer less than or equal to '2147483647', or '-1' which means never expire."
]
);
Raw output
    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) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 627
   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) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 277
   at Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\tests\Microsoft.Azure.Cosmos.EmulatorTests\CFP\AllVersionsAndDeletes\BuilderTests.cs:line 687
   at Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\tests\Microsoft.Azure.Cosmos.EmulatorTests\CFP\AllVersionsAndDeletes\BuilderTests.cs:line 702
   at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ExecutionContextService.<>c__DisplayClass3_0.<RunActionOnContext>b__0(Object _) in /_/src/Adapter/MSTestAdapter.PlatformServices/Services/ExecutionContextService.cs:line 70
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ExecutionContextService.RunActionOnContext(Action action, IExecutionContextScope executionContextScope) in /_/src/Adapter/MSTestAdapter.PlatformServices/Services/ExecutionContextService.cs:line 66

Check failure on line 1 in Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail

Test method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail threw exception: 
Microsoft.Azure.Cosmos.CosmosException: Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: 0978af61-a25b-499a-872c-02505178a947; Reason: (
Errors : [
  "The input ttl '0' is invalid. Ensure to provide a nonzero positive integer less than or equal to '2147483647', or '-1' which means never expire."
]
);
Raw output
    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) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 627
   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) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 277
   at Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\tests\Microsoft.Azure.Cosmos.EmulatorTests\CFP\AllVersionsAndDeletes\BuilderTests.cs:line 687
   at Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\tests\Microsoft.Azure.Cosmos.EmulatorTests\CFP\AllVersionsAndDeletes\BuilderTests.cs:line 702
   at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ExecutionContextService.<>c__DisplayClass3_0.<RunActionOnContext>b__0(Object _) in /_/src/Adapter/MSTestAdapter.PlatformServices/Services/ExecutionContextService.cs:line 70
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ExecutionContextService.RunActionOnContext(Action action, IExecutionContextScope executionContextScope) in /_/src/Adapter/MSTestAdapter.PlatformServices/Services/ExecutionContextService.cs:line 66

Check failure on line 1 in Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-v3-ci

Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail

Test method Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail threw exception: 
Microsoft.Azure.Cosmos.CosmosException: Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: 550fd3f0-ddc3-43f9-afe4-ea5489d04132; Reason: (
Errors : [
  "The input ttl '0' is invalid. Ensure to provide a nonzero positive integer less than or equal to '2147483647', or '-1' which means never expire."
]
);
Raw output
    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) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 627
   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) in D:\a\_work\1\s\Microsoft.Azure.Cosmos\src\Resource\ClientContextCore.cs:line 277
   at Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\tests\Microsoft.Azure.Cosmos.EmulatorTests\CFP\AllVersionsAndDeletes\BuilderTests.cs:line 687
   at Microsoft.Azure.Cosmos.SDK.EmulatorTests.CFP.AllVersionsAndDeletes.BuilderTests.TestAllVersionsAndDeletesProcessor_ColdStart_DoesNotFail() in D:\a\_work\1\s\Microsoft.Azure.Cosmos\tests\Microsoft.Azure.Cosmos.EmulatorTests\CFP\AllVersionsAndDeletes\BuilderTests.cs:line 702
   at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ExecutionContextService.<>c__DisplayClass3_0.<RunActionOnContext>b__0(Object _) in /_/src/Adapter/MSTestAdapter.PlatformServices/Services/ExecutionContextService.cs:line 70
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ExecutionContextService.RunActionOnContext(Action action, IExecutionContextScope executionContextScope) in /_/src/Adapter/MSTestAdapter.PlatformServices/Services/ExecutionContextService.cs:line 66