runtime icon indicating copy to clipboard operation
runtime copied to clipboard

System.Net.HttpListener.Tests failure: Expected _associatedHttp11ConnectionCount=0 > _availableHttp11Connections.Count=0

Open jkotas opened this issue 2 years ago • 2 comments

Process terminated. Assertion failed.
Expected _associatedHttp11ConnectionCount=0 > _availableHttp11Connections.Count=0
   at System.Net.Http.HttpConnectionPool.ReturnHttp11Connection(HttpConnection connection, Boolean isNewConnection, HttpConnectionWaiter`1 initialRequestWaiter) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 1924
   at System.Net.Http.HttpConnectionPool.RecycleHttp11Connection(HttpConnection connection) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 1901
   at System.Net.Http.HttpConnection.ReturnConnectionToPool() in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:line 2082
   at System.Net.Http.HttpConnection.CompleteResponse() in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:line 2022
   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.ReadChunkFromConnectionBuffer(Int32 maxBytesToRead, CancellationTokenRegistration cancellationRegistration) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingReadStream.cs:line 413
   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.CopyToAsyncCore(Stream destination, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingReadStream.cs:line 263
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncMethodBuilderCore.cs:line 38
   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.CopyToAsyncCore(Stream destination, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.CopyToAsync(Stream destination, Int32 bufferSize, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingReadStream.cs:line 248
   at System.IO.Stream.CopyToAsync(Stream destination, CancellationToken cancellationToken) in /_/src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs:line 85
   at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 207
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 179
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs:line 350
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TaskContinuation.cs:line 795
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 3456
   at System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.SetResult(TResult result) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilderT.cs:line 47
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs:line 89

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=479828 Build error leg or test failing: System.Net.HttpListener.Tests.WorkItemExecution Pull request: https://github.com/dotnet/runtime/pull/95212

Error Message

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

{
  "ErrorMessage": "Expected _associatedHttp11ConnectionCount=0 > _availableHttp11Connections.Count=0",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=479828 Error message validated: Expected _associatedHttp11ConnectionCount=0 > _availableHttp11Connections.Count=0 Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 11/25/2023 1:07:26 AM UTC

Report

Build Definition Test Pull Request
558575 dotnet/runtime System.Net.HttpListener.Tests.WorkItemExecution dotnet/runtime#97508

Summary

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

jkotas avatar Nov 25 '23 01:11 jkotas

Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.

Issue Details
Process terminated. Assertion failed.
Expected _associatedHttp11ConnectionCount=0 > _availableHttp11Connections.Count=0
   at System.Net.Http.HttpConnectionPool.ReturnHttp11Connection(HttpConnection connection, Boolean isNewConnection, HttpConnectionWaiter`1 initialRequestWaiter) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 1924
   at System.Net.Http.HttpConnectionPool.RecycleHttp11Connection(HttpConnection connection) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 1901
   at System.Net.Http.HttpConnection.ReturnConnectionToPool() in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:line 2082
   at System.Net.Http.HttpConnection.CompleteResponse() in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:line 2022
   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.ReadChunkFromConnectionBuffer(Int32 maxBytesToRead, CancellationTokenRegistration cancellationRegistration) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingReadStream.cs:line 413
   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.CopyToAsyncCore(Stream destination, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingReadStream.cs:line 263
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncMethodBuilderCore.cs:line 38
   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.CopyToAsyncCore(Stream destination, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.CopyToAsync(Stream destination, Int32 bufferSize, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingReadStream.cs:line 248
   at System.IO.Stream.CopyToAsync(Stream destination, CancellationToken cancellationToken) in /_/src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs:line 85
   at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 207
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 179
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs:line 350
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TaskContinuation.cs:line 795
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:line 3456
   at System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.SetResult(TResult result) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilderT.cs:line 47
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs:line 89

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=479828 Build error leg or test failing: System.Net.HttpListener.Tests.WorkItemExecution Pull request: https://github.com/dotnet/runtime/pull/95212

Error Message

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

{
  "ErrorMessage": "Expected _associatedHttp11ConnectionCount=0 > _availableHttp11Connections.Count=0",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Author: jkotas
Assignees: -
Labels:

area-System.Net.Http, blocking-clean-ci, Known Build Error

Milestone: -

ghost avatar Nov 25 '23 01:11 ghost

Triage: tentatively assigning 9.0, but if hits turn out to be rare, we may punt it to Future or even close it.

antonfirsov avatar Nov 27 '23 12:11 antonfirsov

@MihaZupan is this something that should have been fixed by https://github.com/dotnet/runtime/pull/99402?

CarnaViire avatar Apr 11 '24 09:04 CarnaViire

I would say yes based on the particular assert message, but it looks like my fix was merged 4 days before PR #99555 was opened, and that one's listed in the above table as hitting the issue.

MihaZupan avatar Apr 11 '24 09:04 MihaZupan

removing blocking-clean-ci as this has not failed in the last 30 days

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

jeffschwMSFT avatar Apr 17 '24 16:04 jeffschwMSFT

Closing as fixed by https://github.com/dotnet/runtime/pull/99402

CarnaViire avatar Apr 17 '24 19:04 CarnaViire