[CSHARP-1283] Remove from the topology a replica set member whose "me" hostname:port does not match the one that was used to connect to it Created: 15/May/15  Updated: 16/Jul/15  Resolved: 19/May/15

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: 2.0
Fix Version/s: 2.0.1, 2.1

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Craig Wilson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-230 Remove from the topology a replica se... Closed
Duplicate
is duplicated by CSHARP-1288 System.ObjectDisposedException error ... Closed

 Description   

Given the behavior specified in the current version of the SDAM specification, it's possible for get-more/kill-cursor requests to fail in the following scenario:

  • Create MongoClient with a seed list with IP addresses for a replica set with host names as normal DNS names.
  • Execute a query with a non-primary read preference
  • Execute a get-more for that query

This can happen because server selection will succeed against a seed list host that reports itself as a secondary, but by the time the get-more executes, the primary has identified itself and the driver has replaced all the ip-address-specified seed list hosts with the host names from the primary's server description. The result is that server selection fails for the get-more, as the topology has "forgotten" about the seed list hosts.



 Comments   
Comment by Githook User [ 19/May/15 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1283: fixing issue where a short period of connectivity occurs and then shuts down when the replica set configuration has a different host than what was provided by the seedlist.
Branch: v2.0.x
https://github.com/mongodb/mongo-csharp-driver/commit/5c43e8c825fabaa20b12aac3b47c816df1c0bd83

Comment by Githook User [ 19/May/15 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1283: fixing issue where a short period of connectivity occurs and then shuts down when the replica set configuration has a different host than what was provided by the seedlist.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/aa272deb93a6e27eb43cd036d625df879d345147

Generated at Wed Feb 07 21:39:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.