runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Test failure: System.Net.Sockets.Tests.DualModeConnectionlessReceiveFrom/ReceiveFromV6BoundToAnyV6_Success

Open ghost opened this issue 9 years ago • 25 comments

Opened on behalf of @Jiayili1

The test System.Net.Sockets.Tests.DualModeConnectionlessReceiveFrom/ReceiveFromV6BoundToAnyV6_Success has failed.

System.Net.Sockets.SocketException : Connection timed out

    Stack Trace:

       at System.Net.Sockets.Socket.ReceiveFrom(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint& remoteEP) in /root/corefx/src/System.Net.Sockets/src/System/Net/Sockets/Socket.cs:line 1725
   at System.Net.Sockets.Tests.DualModeBase.ReceiveFrom_Helper(IPAddress listenOn, IPAddress connectTo) in /root/corefx/src/System.Net.Sockets/tests/FunctionalTests/DualModeSocketTest.cs:line 2753

Build : Master - 20170330.01 (Core Tests) Failing configurations:

  • Redhat.72.Amd64
    • x64-Release

Detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170330.01/workItem/System.Net.Sockets.Tests/analysis/xunit/System.Net.Sockets.Tests.DualModeConnectionlessReceiveFrom~2FReceiveFromV6BoundToAnyV6_Success

ghost avatar Mar 30 '17 05:03 ghost

Assuming random test interference that is eating Udp Dgram.

Test calls ReceiveFrom_Helper(listenOn:IPAddress.IPv6Any, conntectTo:IPAddress.IPv6Loopback) and expect success

steveharter avatar Apr 15 '17 21:04 steveharter

No reported jdash failures for this method. Closing since rare and to see if this occurs again.

A timeout could occur because of test interference from related tests that do not allocate a port+algorithm(IPV4, IPV6) but still do a receive on that port+algorithm expecting failures, but instead may eat\receive another test's messages. Some tests were recently disabled that may help here (#17362 and dotnet/runtime#20643)

steveharter avatar Apr 19 '17 15:04 steveharter

@steveharter I assume it didn't show up in your run-in-a-loop-on-CI-machine effort either, right?

karelz avatar Apr 19 '17 16:04 karelz

It didn't show up. However since it is very rare it likely requires putting the test in a loop (along with potentially other interfering tests) which I did not do.

steveharter avatar Apr 19 '17 21:04 steveharter

I thought you ran the entire test suite in a loop, so this test should have been included is that not the case?

Either way, it is only one-time issue, so we can wait for another repro before we try harder to reproduce it (assuming none of your runs so far truly exercised the test).

karelz avatar Apr 19 '17 23:04 karelz

Happened again here: https://ci.dot.net/job/dotnet_corefx/job/master/job/windows_nt_debug_prtest/8059/ on WINDOWS

ViktorHofer avatar May 17 '17 06:05 ViktorHofer

MESSAGE:
System.Net.Sockets.SocketException : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
+++++++++++++++++++
STACK TRACE:
at System.Net.Sockets.Socket.ReceiveFrom(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint& remoteEP) in D:\j\workspace\windows_nt_de---4526f5ff\src\System.Net.Sockets\src\System\Net\Sockets\Socket.cs:line 1700 
at System.Net.Sockets.Socket.ReceiveFrom(Byte[] buffer, EndPoint& remoteEP) in D:\j\workspace\windows_nt_de---4526f5ff\src\System.Net.Sockets\src\System\Net\Sockets\Socket.cs:line 1758 
at System.Net.Sockets.Tests.DualModeBase.ReceiveFrom_Helper(IPAddress listenOn, IPAddress connectTo) in D:\j\workspace\windows_nt_de---4526f5ff\src\System.Net.Sockets\tests\FunctionalTests\DualModeSocketTest.cs:line 2757 
at System.Net.Sockets.Tests.DualModeConnectionlessReceiveFrom.ReceiveFromV6BoundToAnyV6_Success() in D:\j\workspace\windows_nt_de---4526f5ff\src\System.Net.Sockets\tests\FunctionalTests\DualModeSocketTest.cs:line 1461

(@ViktorHofer I'm adding stacks here because the logs get removed after some time.)

CIPop avatar May 17 '17 18:05 CIPop

We have a bunch of timeout issues reported throughout tests that perform networking. I believe this is is a test issue. Moving to Future.

@karelz Please move back if you disagree or if the failure frequency is too high (2 failures in 24hrs).

CIPop avatar May 18 '17 01:05 CIPop

Failed again: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170623.01/workItem/System.Net.Sockets.Tests/analysis/xunit/System.Net.Sockets.Tests.DualModeConnectionlessReceiveFrom~2FReceiveFromV4BoundToSpecificV4_Success

KristinXie1 avatar Jun 23 '17 08:06 KristinXie1

Failed again: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170703.01/workItem/System.Net.Sockets.Tests/analysis/xunit/System.Net.Sockets.Tests.DualModeConnectionlessReceiveFrom~2FReceiveFromV4BoundToAnyV4_Success

KristinXie1 avatar Jul 03 '17 06:07 KristinXie1

failed again in CI: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_netcoreapp_win7_debug/156/testReport/System.Net.Sockets.Tests/DualModeConnectionlessReceiveMessageFrom/ReceiveMessageFromV6BoundToSpecificV6_Success/

KristinXie1 avatar Aug 02 '17 07:08 KristinXie1

Failed again on Core Tests (Master), detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170803.01/workItem/System.Net.Sockets.Tests/analysis/xunit/System.Net.Sockets.Tests.DualModeConnectionlessReceiveFrom~2FReceiveFromV6BoundToSpecificV6_Success

KristinXie1 avatar Aug 03 '17 04:08 KristinXie1

failed again: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170809.01/workItem/System.Net.Sockets.Tests/analysis/xunit/System.Net.Sockets.Tests.DualModeConnectionlessReceiveFrom~2FReceiveFromV6BoundToSpecificV6_Success

KristinXie1 avatar Aug 09 '17 06:08 KristinXie1

failed again in Core Tests (Master), detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170817.01/workItem/System.Net.Sockets.Tests/analysis/xunit/System.Net.Sockets.Tests.DualModeConnectionlessReceiveFrom~2FReceiveFromV4BoundToAnyV6_Success

KristinXie1 avatar Aug 17 '17 06:08 KristinXie1

This issue is repro in CI: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_netcoreapp_win7_release/189/testReport/System.Net.Sockets.Tests/DualModeConnectionlessReceiveFrom/ReceiveFromV4BoundToSpecificV4_Success/

KristinXie1 avatar Aug 24 '17 08:08 KristinXie1

failed again in CI: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_netcoreapp_win7_release/197/testReport/System.Net.Sockets.Tests/DualModeConnectionlessReceiveMessageFrom/ReceiveMessageFromV4BoundToAnyMappedV4_Success/

KristinXie1 avatar Aug 28 '17 03:08 KristinXie1

failed again in ci: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_netcoreapp_windows_nt_debug/151/testReport/System.Net.Sockets.Tests/DualModeConnectionlessReceiveMessageFrom/ReceiveMessageFromV4BoundToSpecificMappedV4_Success/

v-haren avatar Aug 31 '17 08:08 v-haren

failed tests: ReceiveFromV6BoundToSpecificV6_Success ReceiveFromV6BoundToAnyV6_Success ReceiveFromV4BoundToAnyV6_Success ReceiveFromV4BoundToSpecificV4_Success ReceiveFromV4BoundToAnyV4_Success

Detail: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_netcoreapp_ubuntu16.04_debug/159/testReport/

KristinXie1 avatar Sep 08 '17 06:09 KristinXie1

@davidsh this broke CI again today. Thoughts? Maybe we should change to outer loop in short term?

https://mc.dot.net/#/user/WinCPP/pr~2Fjenkins~2Fdotnet~2Fcorefx~2Fmaster~2F/test~2Ffunctional~2Fcli~2F/21121a7336c50eb2468a42015818d9953529c32e/workItem/System.Net.Sockets.Tests/analysis/xunit/System.Net.Sockets.Tests.DualModeConnectionlessReceiveFrom~2FReceiveFromV6BoundToSpecificV6_Success Windows.10.Amd64.ClientRS2.Open-Debug-x64 https://github.com/dotnet/corefx/pull/23786#pullrequestreview-61547866

System.Net.Sockets.SocketException : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Stack Trace :
   at System.Net.Sockets.Socket.ReceiveFrom(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint& remoteEP) in D:\j\workspace\windows-TGrou---33cbf18b\src\System.Net.Sockets\src\System\Net\Sockets\Socket.cs:line 1762
   at System.Net.Sockets.Socket.ReceiveFrom(Byte[] buffer, EndPoint& remoteEP) in D:\j\workspace\windows-TGrou---33cbf18b\src\System.Net.Sockets\src\System\Net\Sockets\Socket.cs:line 1818
   at System.Net.Sockets.Tests.DualModeBase.ReceiveFrom_Helper(IPAddress listenOn, IPAddress connectTo) in D:\j\workspace\windows-TGrou---33cbf18b\src\System.Net.Sockets\tests\FunctionalTests\DualModeSocketTest.cs:line 2757
   at System.Net.Sockets.Tests.DualModeConnectionlessReceiveFrom.ReceiveFromV6BoundToSpecificV6_Success() in D:\j\workspace\windows-TGrou---33cbf18b\src\System.Net.Sockets\tests\FunctionalTests\DualModeSocketTest.cs:line 1454

danmoseley avatar Sep 08 '17 15:09 danmoseley

The original here was opened regarding a Linux test failure (Redhat.72.Amd64).

Since you are pointing to a new failure (on Windows), it is possible that is a brittle test. In general UDP tests against loopback are tricky on a busy CI machine. UDP by definition is "unreliable connectionless networking".

I tried clicking on the mc.dot.net link above and wasn't taken to a System.Net.Sockets failure. Rather, I ended up seeing a System.Net.Security failure on Linux.

davidsh avatar Sep 08 '17 19:09 davidsh