Details
-
Bug
-
Resolution: Done
-
Major - P3
-
1.4.2
-
None
-
None
Description
To reproduce (with replica set configured with actual host names and not numeric IP addresses):
var server = MongoServer.Create("mongodb://127.0.0.1:10001,127.0.0.1:10002,127.0.0.1:10003/?safe=true");
|
var database = server.GetDatabase("test");
|
var collection = database.GetCollection("test");
|
|
|
for (int i = 0; i < 3; i++)
|
{
|
try
|
{
|
Console.WriteLine("Count = {0}", collection.Count());
|
}
|
catch (Exception ex)
|
{
|
Console.WriteLine(ex.Message);
|
}
|
}
|
Output is:
Unable to connect to the primary member of the replica set.
|
Count = 1
|
Count = 1
|
Attachments
Issue Links
- is depended on by
-
CSHARP-549 Connection string with multiple hosts will not create a valid connection
-
- Closed
-
- is related to
-
CSHARP-519 Support load balancing and failover between multiple mongos routers
-
- Closed
-