[JAVA-1996] hidden replica set members in the seed list should be ignored Created: 02/Oct/15  Updated: 15/Jan/16  Resolved: 08/Oct/15

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: 2.13.3, 3.0.4
Fix Version/s: 3.1.0, 2.14.0

Type: Bug 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

Issue Links:
Related

 Description   

The Server Discover and Monitoring Specification requires that hidden replica set members contain in the seed list be treated as type RSOther, and therefore should only be monitored, but not available for server selection.

The Java driver is ignoring the "hidden" field in ismaster responses, so is treating a hidden member as a normal secondary (until the primary responds and they are all removed). It should instead treat is at RSOther.



 Comments   
Comment by Githook User [ 08/Oct/15 ]

Author:

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

Message: JAVA-1996: Detect hidden members of a replica set and treat them as type REPLICA_SET_OTHER instead of REPLICA_SET_SECONDARY.
In practice, this will only come in to play when a hidden replica member is included in the initial host seed list, as hidden members
do not appear in other members ismaster hosts lists.
Branch: 2.13.x
https://github.com/mongodb/mongo-java-driver/commit/0ff3415388c576400030ac52e40002396727928c

Comment by Githook User [ 05/Oct/15 ]

Author:

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

Message: JAVA-1996: Detect hidden members of a replica set and treat them as type REPLICA_SET_OTHER instead of REPLICA_SET_SECONDARY.
In practice, this will only come in to play when a hidden replica member is included in the initial host seed list, as hidden members
do not appear in other members ismaster hosts lists.
Branch: 2.x
https://github.com/mongodb/mongo-java-driver/commit/6b9dcab23744625bd227a8255d8ccb5bade3b1a5

Comment by Githook User [ 05/Oct/15 ]

Author:

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

Message: JAVA-1996: Detect hidden members of a replica set and treat them as type REPLICA_SET_OTHER instead of REPLICA_SET_SECONDARY.
In practice, this will only come in to play when a hidden replica member is included in the initial host seed list, as hidden members
do not appear in other members ismaster hosts lists.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/e0c8bd18896cce3efa0f7a304f772384b0a34330

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