[JAVA-1216] Remove special handling of setVersion reported by ismaster Created: 13/May/14  Updated: 31/Mar/15  Resolved: 14/May/14

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: 2.12.0
Fix Version/s: 2.12.2, 3.0.0

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


 Description   

When determining which servers to monitor, =remove special handling of setVersion reported by ismaster that was added in 2.12.0. It's more reliable to instead to rely on whatever is reported by the primary, if the driver can connect to it.

The driver should only start monitoring new servers if they are reported by the primary or if it isn't connected to the primary. The driver should only stop monitoring servers if the primary reports that they are no longer part of the replica set.



 Comments   
Comment by Jeffrey Yemin [ 31/Mar/15 ]

Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.

Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1216: Removed special handling of replica set version. We ignore non-primary's host lists if there is a primary that we are connected to. We also never remove servers based on a non-primary's host list
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/97da2bf390b4a2573568e13d056d5669e8906b86

Comment by Githook User [ 01/Aug/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1216: Removed special handling of replica set version. We ignore non-primary's host lists if there is a primary that we are connected to. We also never remove servers based on a non-primary's host list.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/38ec3b1214cba9fe693f1fc846530f601fb1b6cf

Comment by Githook User [ 24/Jun/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1216: Removed special handling of replica set version. We ignore non-primary's host lists if there is a primary that we are connected to. We also never remove servers based on a non-primary's host list
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/97da2bf390b4a2573568e13d056d5669e8906b86

Comment by Githook User [ 14/May/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1216: Removed special handling of replica set version. We ignore non-primary's host lists if there is a primary that we are connected to. We also never remove servers based on a non-primary's host list.
Branch: 2.12.x
https://github.com/mongodb/mongo-java-driver/commit/38ec3b1214cba9fe693f1fc846530f601fb1b6cf

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