[SERVER-38413] Always set an initial postBatchResumeToken Created: 05/Dec/18  Updated: 29/Oct/23  Resolved: 09/Jan/19

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 4.0.7, 4.1.7

Type: Improvement Priority: Major - P3
Reporter: Bernard Gorman Assignee: Bernard Gorman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-38412 Allow resuming from a high-water-mark... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0
Sprint: Query 2018-12-31, Query 2019-01-14
Participants:

 Description   

This is intended to allow a $changeStream aggregation on mongoD to return a postBatchResumeToken even when the batchSize is 0. In turn, this will allow the initial aggregate on mongoS to return a valid postBatchResumeToken, despite the fact that it never waits for any actual results from the shards.



 Comments   
Comment by Githook User [ 01/Mar/19 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-38413 Always set an initial postBatchResumeToken on mongoD

(cherry picked from commit 1fd9bfa5867c3e7d6c1eebda53d5ccd8c637459e)
(cherry picked from commit 5fe1af5f8e845f736f4e76d7a8d47675b6507a6c)
Branch: v4.0
https://github.com/mongodb/mongo/commit/689bd54bb22d4ff22f0e280431e6429c2c8bea5d

Comment by Githook User [ 20/Feb/19 ]

Author:

{'name': 'Bernard Gorman', 'username': 'gormanb', 'email': 'bernard.gorman@gmail.com'}

Message: SERVER-38413 DSShardCheckResumability should swallow events that precede the client token during resume
Branch: master
https://github.com/mongodb/mongo/commit/5fe1af5f8e845f736f4e76d7a8d47675b6507a6c

Comment by Githook User [ 09/Jan/19 ]

Author:

{'username': 'gormanb', 'email': 'bernard.gorman@gmail.com', 'name': 'Bernard Gorman'}

Message: SERVER-38413 Always set an initial postBatchResumeToken on mongoD
Branch: master
https://github.com/mongodb/mongo/commit/1fd9bfa5867c3e7d6c1eebda53d5ccd8c637459e

Generated at Thu Feb 08 04:48:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.