[CDRIVER-743] Type remains ReplicaSetWithPrimary if primary steps down and changes setName Created: 14/Jul/15  Updated: 12/Aug/15  Resolved: 17/Jul/15

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.2.0
Fix Version/s: 1.2-beta0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

Bug in unreleased implementation of Server Discovery And Monitoring Spec, in the C Driver's implementation of the subroutine that the spec calls updateRSWithPrimaryFromMember.

1. Discover primary, topology type is ReplicaSetWithPrimary
2. In next ismaster response from primary it has become secondary and changed setName

Expected: server is removed and topology type changes to ReplicaSetNoPrimary

Actual: server is removed but topology type remains ReplicaSetWithPrimary



 Comments   
Comment by Githook User [ 17/Jul/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-743 properly set topology to "no primary"

If primary steps down and changes its set name between ismaster calls, change topology type from ReplicaSetWithPrimary
to ReplicaSetNoPrimary.
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/2ac850a88c0b174315f0043f9c2f872c7ea2beb7

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