runtime icon indicating copy to clipboard operation
runtime copied to clipboard

System.Data.SqlClient.Tests.ExceptionTest.NamedPipeTest failed in CI

Open KristinXie1 opened this issue 9 years ago • 8 comments

COnfiguration: OuterLoop_Windows10_release (build#134)

Detail: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_win10_release/134/consoleText

 System.Data.SqlClient.Tests.ExceptionTest.NamedPipeTest(dataSource: \"np:\\\\\\\\.\\\\pipe\\\\sqlbad\\\\query\") [FAIL]
        Assert.Contains() Failure
        Not found: (provider: Named Pipes Provider, error: 11 - Timeout error)
        In value:  A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
        Stack Trace:
           D:\j\workspace\outerloop_win---6835b088\src\System.Data.SqlClient\tests\FunctionalTests\ExceptionTest.cs(116,0): at System.Data.SqlClient.Tests.ExceptionTest.VerifyConnectionFailure[TException](Action connectAction, String expectedExceptionMessage, Func`2 exVerifier)
           D:\j\workspace\outerloop_win---6835b088\src\System.Data.SqlClient\tests\FunctionalTests\ExceptionTest.cs(124,0): at System.Data.SqlClient.Tests.ExceptionTest.VerifyConnectionFailure[TException](Action connectAction, String expectedExceptionMessage)
           D:\j\workspace\outerloop_win---6835b088\src\System.Data.SqlClient\tests\FunctionalTests\ExceptionTest.cs(91,0): at System.Data.SqlClient.Tests.ExceptionTest.NamedPipeTest(String dataSource)

KristinXie1 avatar Mar 22 '17 06:03 KristinXie1

Failed again on Windows 10, detail: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_win10_debug/130/testReport/System.Data.SqlClient.Tests/ExceptionTest/NamedPipeTest_dataSource____np______________pipe____sqlbad____query___/

KristinXie1 avatar Mar 23 '17 07:03 KristinXie1

Actually all these connection strings generate not a timeout exception but a connection exception: "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server" because pipes are named in such a way that they are not configured on the machine (e.g. "np:\.\pipe\sqlbad\query"). I can change the expected exception.

StanislavUshakov avatar Mar 23 '17 16:03 StanislavUshakov

Failed again on windows 10, detail: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_win10_debug/lastCompletedBuild/testReport/System.Data.SqlClient.Tests/ExceptionTest/NamedPipeTest_dataSource____np______________pipe____sqlbad____query___/

KristinXie1 avatar Mar 24 '17 06:03 KristinXie1

Failed again on windows10_debug and windows10_release

KristinXie1 avatar Mar 27 '17 09:03 KristinXie1

Failed again here: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_win10_debug_prtest/9/consoleText

stephentoub avatar Mar 27 '17 18:03 stephentoub

Failed again here: https://github.com/dotnet/corefx/pull/17553

stephentoub avatar Mar 27 '17 18:03 stephentoub

Failed again here: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_win10_debug/135/consoleText

KristinXie1 avatar Mar 28 '17 01:03 KristinXie1

Looks like this was happening when native SNI was still the default. Since we're using managed SNI as the default in SqlClient, this issue no longer reproduces.

corivera avatar Apr 25 '17 23:04 corivera