Skip to content

Test failure: System.Net.Sockets.Tests.ConnectEap.Connect_Dns_Success #43091

Closed

Description

@MihaZupan

Connect_Dns_Success socket test is failing for the EAP case with the error of the event handler being called twice.

System.Net.Sockets.Tests.ConnectEap.Connect_Dns_Success(listenAt: 127.0.0.1) [FAIL]
      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_T.cs(202,0): at System.Threading.Tasks.TaskCompletionSource`1[[System.Boolean, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SetResult(Boolean result)
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketTestHelper.cs(296,0): at System.Net.Sockets.Tests.SocketHelperEap.<>c__DisplayClass15_0`1[[System.Boolean, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<InvokeAsync>b__0(Object _, SocketAsyncEventArgs e)
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketTestHelper.cs(303,0): at System.Net.Sockets.Tests.SocketHelperEap.InvokeAsync[Boolean](Socket s, Func`2 getResult, Func`2 invoke)
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketTestHelper.cs(241,0): at System.Net.Sockets.Tests.SocketHelperEap.ConnectAsync(Socket s, EndPoint endPoint)
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketTestHelper.cs(329,0): at System.Net.Sockets.Tests.SocketTestHelperBase`1[[System.Net.Sockets.Tests.SocketHelperEap, System.Net.Sockets.Tests, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].ConnectAsync(Socket s, EndPoint endPoint)
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/Connect.cs(59,0): at System.Net.Sockets.Tests.Connect`1.<Connect_Dns_Success>d__3[[System.Net.Sockets.Tests.SocketHelperEap, System.Net.Sockets.Tests, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()

The first occurrence of this failure was on CI for PR #42919 that worked around fixing MultipleConnectAsync locking logic.
Failed 18 times in innerloop in the last 10h after the PR was merged.

Kusto: link

Activity

  1. added this to the 6.0.0 milestone on Oct 6, 2020
  2. added
    untriaged
    on Oct 6, 2020
  3. removed
    untriaged
    on Oct 6, 2020
  4. MihaZupan commented on Oct 6, 2020

    @MihaZupan
    MemberAuthor
  5. geoffkizer commented on Oct 6, 2020

    @geoffkizer
    Contributor

    I think the issue is that we're calling Succeed even when the operation completes synchronously, which causes us to complete it twice. Fix should be straightforward.

  6. ghost locked as resolved and limited conversation to collaborators on Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions