Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
2.5
-
None
Description
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.
Attachments
Issue Links
- is duplicated by
-
CSHARP-2245 Driver version 2.5.0 is failing to connect to a hidden replica set member.
-
- Closed
-