Skip to content

Commit 685a6d8

Browse files
committed
CSHARP-2259: When a MongoNodeIsRecoveringException occurs the server type must be set to Unknown.
1 parent 1552f71 commit 685a6d8

File tree

1 file changed

+1
-0
lines changed
  • src/MongoDB.Driver.Core/Core/Servers

1 file changed

+1
-0
lines changed

src/MongoDB.Driver.Core/Core/Servers/Server.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ internal sealed class Server : IClusterableServer
4747
private static readonly List<Type> __invalidatingExceptions = new List<Type>
4848
{
4949
typeof(MongoNotPrimaryException),
50+
typeof(MongoNodeIsRecoveringException),
5051
typeof(MongoConnectionException),
5152
typeof(SocketException),
5253
typeof(EndOfStreamException),

0 commit comments

Comments
 (0)