-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 2.5
-
Component/s: Command Operations
-
None
The following throws a timeout exception on the call to RunCommand starting with version 2.5.0:
var client = new MongoClient("mongodb://hostname/?connect=direct"); var adminDatabase = client.GetDatabase("admin"); var config = new BsonDocument { { "_id", "rs" }, { "members", new BsonArray { new BsonDocument { { "_id", 0 }, { "host", "hostname:27017" } } } } }; var command = new BsonDocument("replSetInitiate", config); var result = adminDatabase.RunCommand<BsonDocument>(command);
The problem is related to implicit sessions.
- is duplicated by
-
CSHARP-2245 Driver version 2.5.0 is failing to connect to a hidden replica set member.
- Closed