[JAVA-497] ReadPrefs ignored for commands Created: 22/Dec/11  Updated: 01/Oct/12  Resolved: 20/Jul/12

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

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Bryan Reinero
Resolution: Done Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by JAVA-535 DB.getCollectionNames() fails when co... Closed
is duplicated by JAVA-536 DBCursor.count() fails when querying ... Closed
Related
related to JAVA-570 distinct and count not go to secondar... Closed
related to JAVA-606 MapReduce Fails when specifying a col... Closed
is related to JAVA-397 authentication for replica set fails ... Closed
is related to JAVA-657 ReadPrefs ignored for some commands d... Closed

 Description   

DB.java:183 passes in a null readPrefs but should pass in getReadPreference() to command(...).



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

Closing as part of 2.9.0 release process.

Comment by auto [ 20/Aug/12 ]

Author:

{u'date': u'2012-08-20T08:26:41-07:00', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}

Message: JAVA-497: Fix read prefs on findOne for sharded clusters
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/d90bb45b77b373cd8b04a4aa6a7fd6b6e950c0ef

Comment by auto [ 07/Aug/12 ]

Author:

{u'date': u'2012-08-07T07:22:55-07:00', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}

Message: JAVA-497: read preference set on mongo options was not getting applied to Mongo instance
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/fba7ac1f14659c0dc12187807e7ddad5a2cb1e05

Comment by auto [ 03/Aug/12 ]

Author:

{u'date': u'2012-08-03T11:56:11-07:00', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}

Message: JAVA-497: authenticate/getnonce commands always use ReadPreference.primaryPreferred, so that authentication doesn't fail if connected to a replica set with no primary available
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/0cac416c24073e27733df9bee3e7e2418a3b59c2

Comment by auto [ 02/Aug/12 ]

Author:

{u'date': u'2012-08-01T16:45:25-07:00', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}

Message: JAVA-497:
Deprecating ReadPreference.SECONDARY and ReadPreference.PRIMARY in favor of static factory methods
Reverting semantics of ReadPreference.SECONDARY to what it was in previous releases, which is equivalent to ReadPreference.secondaryPreferred() rather than ReadPreference.secondary()
Improved the unit tests
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/cf314ccb59337d9d445b526fb996e3da2cf1b128

Comment by Bryan Reinero [ 20/Jul/12 ]

Resolved with commit:
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/8a1011fdbcbd4649cb91ddce91516b7c8d4bc8e9

Comment by auto [ 17/May/12 ]

Author:

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

Message: JAVA-497: Rolling back this change until what we want to do is fully spec'd
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/161aba972b5b5842f0985f0d6da8070bc8ef59f1

Comment by Jeffrey Yemin [ 05/Apr/12 ]

Commands that can be sent to secondaries if slaveOK is set:

  • aggregate
  • collStats
  • count
  • dbStats
  • distinct
  • geoNear
  • geoSearch
  • geoWalk
  • group
  • mapreduce (inline)

Also

  • DB.getCollectionNames
Comment by auto [ 14/Feb/12 ]

Author:

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

Message: JAVA-497: Use default ReadPreference for commands
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/5804ac240ce11b92a443cd2e6ead2e423792d700

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