[SERVER-36105] Implement server support for exhaust cursors in OP_MSG Created: 12/Jul/18 Updated: 29/Oct/23 Resolved: 21/Aug/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.3 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Tess Avitabile (Inactive) | Assignee: | William Schultz (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | Repl 2018-07-30, Repl 2018-08-13, Repl 2018-08-27 | ||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
The ServiceStateMachine will implement the server side of the exhaust cursor OP_MSG protocol.
Example: client sends a getMore with cursorId 9 for collection “mydb.mycoll” with 3 documents:
Server sends first response:
Since there are more documents, the server runs the getMore again and sends the response:
Because the cursor was exhausted, the moreToCome flag was not set and the cursor ID was 0. |
| Comments |
| Comment by Tess Avitabile (Inactive) [ 27/Jan/20 ] |
|
That isn't on our roadmap currently, but we could do so if there is interest. |
| Comment by Matt Broadstone [ 26/Jan/20 ] |
|
william.schultz can you provide more details on that design? Is there a plan to support exhaustAllowed on the initial command? |
| Comment by William Schultz (Inactive) [ 04/Oct/18 ] |
|
jeff.yemin Correct. We currently only check for the exhaust flag on getMore commands. |
| Comment by Githook User [ 21/Aug/18 ] |
|
Author: {'name': 'William Schultz', 'email': 'william.schultz@mongodb.com', 'username': 'will62794'}Message: |
| Comment by Githook User [ 21/Aug/18 ] |
|
Author: {'name': 'William Schultz', 'email': 'william.schultz@mongodb.com', 'username': 'will62794'}Message: |