[CSHARP-1961] Possible bug in connection state management Created: 11/Apr/17 Updated: 15/May/17 Resolved: 15/May/17 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Connectivity |
| Affects Version/s: | 2.4.3 |
| Fix Version/s: | 2.4.4 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Aristarkh Zagorodnikov | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
.NET 4.6.2, Windows 10 x64 |
||
| Description |
|
When one of our databases fail over we sometimes get these exceptions:
While the top-level exception (MongoConnectionException) looks good, the inner InvalidOperationException looks suspect to me. P.S. !Async.Rethrow is part of our diagnostics' stack trace compression, it's equivalent to
|
| Comments |
| Comment by Githook User [ 15/May/17 ] | |||||||||||||||||||||||||
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: | |||||||||||||||||||||||||
| Comment by Robert Stam [ 08/May/17 ] | |||||||||||||||||||||||||
|
Thanks for the update. The invalid state transition exception in the cluster description is a bug that was hiding the original connection exception, which makes it hard to know exactly what happened. | |||||||||||||||||||||||||
| Comment by Shawn Mclean [ 08/May/17 ] | |||||||||||||||||||||||||
|
So my problem above was documented. Dotnet core does not support SNI TLS on linux: https://github.com/dotnet/corefx/issues/9608 Atlas free tier requires this. | |||||||||||||||||||||||||
| Comment by Shawn Mclean [ 06/May/17 ] | |||||||||||||||||||||||||
|
I have this exact issue when running a dotnet core app in a linux docker container. The same app works fine on windows. This occurred when changing from a single instance connection string to a replica set hosted on atlas. Stack trace:
| |||||||||||||||||||||||||
| Comment by Robert Stam [ 13/Apr/17 ] | |||||||||||||||||||||||||
|
The exception in the Description does seem like a bug. Not sure about the other one in the Comment. | |||||||||||||||||||||||||
| Comment by Aristarkh Zagorodnikov [ 11/Apr/17 ] | |||||||||||||||||||||||||
|
I'm not sure if this is related and indicates a possible race condition, but consider this one too:
|