[SERVER-81327] Reject resharding natural scan query if initialSyncId is not matching. Created: 21/Sep/23  Updated: 29/Oct/23  Resolved: 02/Oct/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Jiawei Yang Assignee: Jiawei Yang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2023-10-02, Repl 2023-10-16
Participants:
Linked BF Score: 138

 Description   

We are not checking the initialSyncId in resumeToken, which could lead to data inconsistency. We should reject it and let the resharding fail.



 Comments   
Comment by Githook User [ 02/Oct/23 ]

Author:

{'name': 'Jiawei Yang', 'email': 'jiawei.yang@mongodb.com', 'username': 'YoungYang0820'}

Message: SERVER-81327 Fix classic engine not returning initialSyncID in PBRT and reject resumeToken when initialSyncID not match
Branch: master
https://github.com/mongodb/mongo/commit/6a6b3dc9a6df1fb21b4b9bad0870dd6c3da52c49

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