[SERVER-5169] partial result set rather than assertion in some cases when a cursor is overtaken by a cap point overrun on yield Created: 02/Mar/12  Updated: 03/Dec/15  Resolved: 03/Dec/15

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

Type: Improvement Priority: Major - P3
Reporter: Aaron Staple Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-2454 Queries that are killed during a yiel... Closed
Participants:

 Description   

            if ( c->capped() ) {
                /* note we cannot advance here. if this condition occurs, writes to the oplog
                   have "caught" the reader.  skipping ahead, the reader would miss postentially
                   important data.
                   */
                delete cc;
                continue;
            }

Previously query would assert if this occurs during a yield, while get more would return a partial result.

After recent SERVER-4150 work, query may assert or return partial result depending on code path. Get more behavior (partial result) is unchanged.



 Comments   
Comment by David Storch [ 03/Dec/15 ]

Fixed under SERVER-2454. Resolving as a duplicate.

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