[JAVA-1842] listCollections and listIndexes commands are forced to the primary Created: 26/May/15  Updated: 28/May/15  Resolved: 27/May/15

Status: Closed
Project: Java Driver
Component/s: Command Operations
Affects Version/s: 2.13.0
Fix Version/s: 2.13.2, 2.14.0

Type: Bug Priority: Minor - P4
Reporter: Chunming Li (Inactive) Assignee: Ross Lawley
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

I ran the listCollections command with primaryPreferred read preference against a 3.0+ replica set, but instead the driver dictates primary read preference here. I'd like the command to work when the primary is down. This is likely caused by the string case mismatching in the _obedientCommands.



 Comments   
Comment by Jeffrey Yemin [ 28/May/15 ]

Fix released in 2.13.2.

Comment by Githook User [ 27/May/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Fix case in obedientCommands

And revert the regression tests back after being
incorrectly changed in https://github.com/mongodb/mongo-java-driver/commit/22a0a66910c6b7f0197e2730eb9c6b0d1349bc55

JAVA-1842
Branch: 2.x
https://github.com/mongodb/mongo-java-driver/commit/9057c5b2a696abe990219824e4206363d96a226c

Comment by Githook User [ 27/May/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Fix case in obedientCommands

And revert the regression tests back after being
incorrectly changed in https://github.com/mongodb/mongo-java-driver/commit/22a0a66910c6b7f0197e2730eb9c6b0d1349bc55

JAVA-1842
Branch: 2.13.x
https://github.com/mongodb/mongo-java-driver/commit/3f9a7c1c2030b2c3cbeb3d58005e8c1e0a6bfeda

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