[SERVER-4800] mongos cursor handling with timeouts Created: 27/Jan/12  Updated: 11/Jul/16  Resolved: 07/Jun/12

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

Type: Bug Priority: Major - P3
Reporter: Greg Studer Assignee: Greg Studer
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-6036 Disable cursor timeout for cursors th... Closed
Operating System: ALL
Participants:

 Description   

... to avoid timeouts, we should pull from each cursor in turn.

Special case - if the sort order is over the shard key - but in this case we'd have to detect chunk bounds anyway so probably only a small optimization if any.



 Comments   
Comment by Tad Marshall [ 27/Jun/12 ]

Backported to 2.0.7.

Comment by auto [ 27/Jun/12 ]

Author:

{u'date': u'2012-06-27T12:36:11-07:00', u'email': u'greg@10gen.com', u'name': u'Greg Studer'}

Message: SERVER-4800 make unsorted parallel cursors do round-robin when pulling data, minimize timeouts

Signed-off-by: Tad Marshall <tad@10gen.com>
Branch: v2.0
https://github.com/mongodb/mongo/commit/12de29a40185e24c1bfb2c5d838903c15e8b2a85

Comment by auto [ 22/May/12 ]

Author:

{u'login': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-4800 make unsorted parallel cursors do round-robin when pulling data, minimize timeouts
Branch: master
https://github.com/mongodb/mongo/commit/b594f8a458322e174d5278a13ced4f1f48ffa75b

Comment by Greg Studer [ 23/Feb/12 ]

Realized I had this patch lying around and never committed...

http://codereview.10gen.com/7400003/

Pretty sure it tests okay, but will have to retry.

Should fix the no-search case. As eliot sez, for search case we'll need a keepalive for the cursor - maybe a getMore with a keepalive flag or something.

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