Test failure: System.Net.Sockets.Tests.DualModeConnectionlessReceiveFrom/ReceiveFromV6BoundToAnyV6_Success
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
Assuming random test interference that is eating Udp Dgram.
Test calls ReceiveFrom_Helper(listenOn:IPAddress.IPv6Any, conntectTo:IPAddress.IPv6Loopback) and expect success
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 I assume it didn't show up in your run-in-a-loop-on-CI-machine effort either, right?
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.
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).
Happened again here: https://ci.dot.net/job/dotnet_corefx/job/master/job/windows_nt_debug_prtest/8059/ on WINDOWS
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.)
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).
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
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
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/
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
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
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
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/
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/
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/
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/
@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
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.