Skip to content

[6.0] An attempt was made to transition a task to a final state when it had already completed. #95158

@carlossanlop

Description

@carlossanlop

Error Blob

{
  "ErrorMessage": "An attempt was made to transition a task to a final state when it had already completed.",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Reproduction Steps

      System.InvalidOperationException : An attempt was made to transition a task to a final state when it had already completed.
      Stack Trace:
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TaskCompletionSource.cs(91,0): at System.Threading.Tasks.TaskCompletionSource.SetException(Exception exception)
        /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/Mock/MockConnection.cs(470,0): at System.Net.Quic.Implementations.Mock.MockConnection.StreamLimit.CloseWaiters()
        /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/Mock/MockConnection.cs(385,0): at System.Net.Quic.Implementations.Mock.MockConnection.Dispose(Boolean disposing)
        /_/src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/Mock/MockConnection.cs(336,0): at System.Net.Quic.Implementations.Mock.MockConnection.CloseAsync(Int64 errorCode, CancellationToken cancellationToken)
        /_/src/libraries/System.Net.Quic/src/System/Net/Quic/QuicConnection.cs(106,0): at System.Net.Quic.QuicConnection.CloseAsync(Int64 errorCode, CancellationToken cancellationToken)
        /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http3Connection.cs(122,0): at System.Net.Http.Http3Connection.CheckForShutdown()
        /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http3Connection.cs(97,0): at System.Net.Http.Http3Connection.Dispose()
        /_/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/List.cs(572,0): at System.Collections.Generic.List`1.ForEach(Action`1 action)
        /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs(1952,0): at System.Net.Http.HttpConnectionPool.Dispose()
        /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPoolManager.cs(452,0): at System.Net.Http.HttpConnectionPoolManager.Dispose()
        /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionHandler.cs(31,0): at System.Net.Http.HttpConnectionHandler.Dispose(Boolean disposing)
        /_/src/libraries/System.Net.Http/src/System/Net/Http/DiagnosticsHandler.cs(214,0): at System.Net.Http.DiagnosticsHandler.Dispose(Boolean disposing)
        /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs(165,0): at System.Net.Http.RedirectHandler.Dispose(Boolean disposing)
        /_/src/libraries/System.Net.Http/src/System/Net/Http/HttpMessageHandler.cs(39,0): at System.Net.Http.HttpMessageHandler.Dispose()
        /_/src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.cs(60,0): at System.Net.Http.HttpClientHandler.Dispose(Boolean disposing)
        /_/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs(702,0): at System.Net.Http.HttpClient.Dispose(Boolean disposing)
        /_/src/libraries/System.Net.Http/src/System/Net/Http/HttpMessageInvoker.cs(126,0): at System.Net.Http.HttpMessageInvoker.Dispose()
        /_/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http3.cs(1090,0): at System.Net.Http.Functional.Tests.HttpClientHandlerTest_Http3.EchoServerStreaming_DifferentMessageSize_Success(Int32 messageSize)
        --- End of stack trace from previous location ---

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=477586
Error message validated: An attempt was made to transition a task to a final state when it had already completed.
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/23/2023 2:27:38 AM UTC

Report

Build Definition Test Pull Request
513219 dotnet/runtime System.IO.FileSystem.Watcher.Tests.WorkItemExecution
512008 dotnet/runtime System.IO.FileSystem.Watcher.Tests.WorkItemExecution
510973 dotnet/runtime System.IO.FileSystem.Watcher.Tests.WorkItemExecution
496593 dotnet/runtime System.IO.FileSystem.Watcher.Tests.WorkItemExecution
496474 dotnet/runtime System.IO.FileSystem.Watcher.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 3 5

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarch-x64area-System.Net.Quicblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-linuxLinux OS (any supported distro)runtime-coreclrspecific to the CoreCLR runtimetest-bugProblem in test source code (most likely)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions