[SERVER-14294] Queries on $cmd.sys.inprog (currOp) errors out when query is wrapped (readPref, hint, etc) Created: 18/Jun/14  Updated: 06/Dec/22  Resolved: 01/Apr/19

Status: Closed
Project: Core Server
Component/s: Querying, Sharding
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Christian Amor Kvalheim Assignee: Backlog - Query Team (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Query
Operating System: ALL
Steps To Reproduce:

db.$cmd.sys.inprog.find({}).readPref("primary").limit(1)

Participants:

 Description   

A query against $cmd.sys.inprog (and $cmd.sys.killop) with a readpreference set

{$query: {$all:true}, $readPreference:{mode: 'primary'}}

This will either require drivers to specially filter these collections, to avoid errors, or a fix in the server to handle the $readPreference in some way (either ignore or respect it for mongos).



 Comments   
Comment by Craig Homa [ 01/Apr/19 ]

The Query team believes that this may no longer be an issue, but our wire protocol has changed so much since 2014 that we likely wouldn't pursue a fix for this.

Comment by Gregory McKeon (Inactive) [ 28/Mar/19 ]

Sending to query from Sharding's backlog review.

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