[SERVER-45726] Allow empty firstBatch with TaskExecutorCursor Created: 23/Jan/20  Updated: 29/Oct/23  Resolved: 27/Feb/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.4, 4.3.4

Type: Bug Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-40414 TaskExecutorCursor Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Service Arch 2020-01-27, Service Arch 2020-02-24, Service Arch 2020-03-09
Participants:

 Description   

In the TaskExecutorCursor, if the first batch is empty, we dump the cursor here. We should check the cursorId instead of the batch size to see if we're done.



 Comments   
Comment by Githook User [ 02/Mar/20 ]

Author:

{'name': 'Cheahuychou Mao', 'username': 'cheahuychou', 'email': 'cheahuychou.mao@mongodb.com'}

Message: SERVER-45726 Allow empty firstBatch with TaskExecutorCursor

(cherry picked from commit 727e3a51192152607de7ab4ac3cc8d909b1f5df1)
Branch: v4.2
https://github.com/mongodb/mongo/commit/b8583f28abf62cf624cd039c6c0aecc8dce653e6

Comment by Githook User [ 27/Feb/20 ]

Author:

{'username': 'cheahuychou', 'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com'}

Message: SERVER-45726 Improve variable names in TaskExecutorCursor
Branch: master
https://github.com/mongodb/mongo/commit/8678e369343dbe763e3fed1d044e640ea51f566d

Comment by Githook User [ 27/Feb/20 ]

Author:

{'username': 'cheahuychou', 'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com'}

Message: SERVER-45726 Allow empty firstBatch with TaskExecutorCursor
Branch: master
https://github.com/mongodb/mongo/commit/727e3a51192152607de7ab4ac3cc8d909b1f5df1

Generated at Thu Feb 08 05:09:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.