[JAVA-2775] Query sharded collection stuck with readPreference Secondary Created: 06/Feb/18  Updated: 11/Sep/19  Resolved: 07/Feb/18

Status: Closed
Project: Java Driver
Component/s: Connection Management
Affects Version/s: 3.4.2
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: BrianShou [X] Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MongoDBServer 3.4.5



 Description   

Program querying sharding collection hanged with no timeout when using read preference Secondary and SecondaryPreferred.
It worked using Primary and PrimaryPreferred.
All read preference works querying non-shard collection on the same cluster.



 Comments   
Comment by Ross Lawley [ 07/Feb/18 ]

Will follow up on Stackoverflow.

Comment by BrianShou [X] [ 07/Feb/18 ]

Hi Ross!
I posted my question with more details on the stackoverflow.
Thanks for helping me!

Comment by Ross Lawley [ 06/Feb/18 ]

Hi BrianShou,

Please can you provide some more information? If you are asking how best to target a query on a sharded cluster to a secondary node then the best place would be the mongodb-user mailinglist or stackoverflow as you will reach a boarder audience there. If your business requires an answer from MongoDB within a time frame then we do offer production support.

If you do follow up via one of the forums above please post a link and I will follow the conversation there.

All the best,

Ross

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