[SERVER-80387] DocumentSourceCursor should not crash on invalid query Created: 24/Aug/23  Updated: 29/Oct/23  Resolved: 29/Aug/23

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

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:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.1
Sprint: Repl 2023-09-04
Participants:
Linked BF Score: 135

 Description   

We have a defensive invariant here which should be changed to an uassert instead because after we support resume token in aggregate, it is possible that a query from external hits the invariant and crash the server.



 Comments   
Comment by Githook User [ 05/Sep/23 ]

Author:

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

Message: SERVER-80387 change invariant to uassert on invalid resumeToken aggregate query
Branch: v7.1
https://github.com/mongodb/mongo/commit/478442566775342813c45b3b218eb4d4367986ea

Comment by Githook User [ 29/Aug/23 ]

Author:

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

Message: SERVER-80387 change invariant to uassert on invalid resumeToken aggregate query
Branch: master
https://github.com/mongodb/mongo/commit/02e9d49f9e4140702ba033c48f6295391c33fb50

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