[SERVER-19842] Support allowPartialResults in new mongos read path Created: 10/Aug/15  Updated: 11/Oct/17  Resolved: 25/Sep/15

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

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-27170 A possibility to read data from curre... Closed
Backwards Compatibility: Fully Compatible
Sprint: QuInt A (10/12/15)
Participants:

 Description   

OP_QUERY style find accepts an option called partial, documented here. If set, mongos will return partial results when a shard is down rather than returning an error to the client.

In order to support this flag in 3.2, we need to do the following:

  1. The find command should accept a parameter called allowPartialResults.
  2. The AsyncResultsMerger in the new mongos read path should avoid propagating the error if only some of the shards can be contacted and allowPartialResults is set.


 Comments   
Comment by John Gibbons [ 11/Oct/17 ]

not convinced this is fully working as expected, raised https://jira.mongodb.org/browse/SERVER-31511

Comment by Githook User [ 25/Sep/15 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-19842 support allowPartialResults query option in new mongos read path
Branch: master
https://github.com/mongodb/mongo/commit/549d1080fe68fdef42182d4a4189fdd70f964eaf

Comment by David Storch [ 08/Sep/15 ]

As part of this work, tests disabled in 8ec64f2f8dfc need to be re-enabled. (Grep for SERVER-19842.)

Comment by Githook User [ 08/Sep/15 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-19842 disable tests
Branch: master
https://github.com/mongodb/mongo/commit/8ec64f2f8dfc71080c9f502fbc750677fadff553

Comment by Githook User [ 03/Sep/15 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-19842 rename 'partial' find command parameter to 'allowPartialResults'
Branch: master
https://github.com/mongodb/mongo/commit/968c2eb3e46d1fa75ad1c6bbfde6172bbaddc830

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