[SERVER-30579] Change resumeTokens to include collection UUID instead of namespace Created: 09/Aug/17  Updated: 30/Oct/23  Resolved: 24/Aug/17

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.5.13

Type: Task Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-30590 Don't allow resuming changeStreams af... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2017-08-21, Repl 2017-09-11
Participants:

 Description   

Since we don't have a multi-version catalog, it's impossible to route changeStream cursors properly in a sharded cluster when the collection has been dropped. Therefore we will make it so that resuming change streams on a collection that has been dropped will error. To do this we will change the resumeToken to include the collection UUID instead of the namespace, and when a mongod gets a changeStream request with a resumeToken, it will first check if it has a collection with that UUID, and will error if it does not.



 Comments   
Comment by Ramon Fernandez Marina [ 24/Aug/17 ]

Author:

{'username': u'mtrussotto', 'name': u'Matthew Russotto', 'email': u'matthew.russotto@10gen.com'}

Message:SERVER-30579 Change resumeTokens to include collection UUID instead of namespace
Branch:master
https://github.com/mongodb/mongo/commit/ee6a79935e98b4a12bc74cb385e7d5f62633347e

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