[DRIVERS-230] 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: 23/Jan/20  Resolved: 14/Nov/16

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

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

Issue Links:
Depends
depends on RUBY-961 Remove from the topology a replica se... Closed
depends on PYTHON-999 Update SDAM tests to latest and fix f... Closed
depends on CDRIVER-1021 Remove from the topology a replica se... Closed
depends on CSHARP-1283 Remove from the topology a replica se... Closed
depends on JAVA-1815 Remove from the topology a replica se... Closed
Duplicate
is duplicated by DRIVERS-268 SDAM test for race condition when see... Closed
Problem/Incident
Related
Driver Compliance:
Key Status/Resolution FixVersion
JAVA-1815 Done 2.13.2, 3.0.2, 3.1.0, 2.14.0
CSHARP-1283 Done 2.0.1, 2.1
RUBY-961 Done 2.1.0
PYTHON-999 Done 3.1
CDRIVER-1021 Done 1.3.0-rc0

 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.

A fix to the SDAM specification has been accepted, and must be implemented in all drivers.



 Comments   
Comment by Rathi Gnanasekaran [ 14/Nov/16 ]

All drivers tickets are resolved or validated so resolving ticket.

Comment by Jeremy Mikola [ 14/Nov/16 ]

PHPC and HHVM are addressed by CDRIVER-1021 and this is not relevant to PHPLIB.

Generated at Thu Feb 08 08:21:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.