[JAVA-474] Enhance read preference support Created: 20/Nov/11  Updated: 29/Aug/12  Resolved: 18/Jul/12

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: None
Fix Version/s: 2.9.0

Type: New Feature Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Bryan Reinero
Resolution: Done Votes: 0
Labels: server-2.2.0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by JAVA-457 Reenable Read By Tags when mongos als... Closed
is duplicated by JAVA-477 Read from primary server in replica s... Closed
Related
related to JAVA-602 Setting ReadPreference.PRIMARY on a f... Closed

 Description   

Support five read preferences:

  • primary
  • primaryPreferred
  • secondary
  • secondaryPreferred
  • nearest

Additionally, support read preference tagging, so that clients can select which secondaries to read from based on tags.

See http://docs.mongodb.org/manual/applications/replication/#replica-set-read-preference for details.



 Comments   
Comment by Jeffrey Yemin [ 29/Aug/12 ]

Closing as part of 2.9.0 release process.

Comment by Jeffrey Yemin [ 15/Aug/12 ]

See com.mongodb.ReadPreference for the major API changes.

Comment by auto [ 27/Jul/12 ]

Author:

{u'date': u'2012-07-24T07:12:39-07:00', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}

Message: JAVA-474: Added support for read preference in MongoURI and MongoOptions. Implemented equals/hashCode for read preferences
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/222d660e33015bce54b08845000c2ea77b944b32

Comment by auto [ 23/Jul/12 ]

Author:

{u'date': u'2012-07-23T11:12:59-07:00', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-474: Now only send on wire if talking to a mongos
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/65a4ad4e89feae20024c83369da10a266a34f1f7

Comment by Bryan Reinero [ 18/Jul/12 ]

pushed to master b05da7e4839d13f464bc8c7645bc9ef6695288d7

Comment by Scott Hernandez (Inactive) [ 20/Nov/11 ]

re-enabled with commit: https://github.com/mongodb/mongo-java-driver/commit/14ae90be2964156e032739e158303a3dc1940bfa

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