[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: |
|
||||||||
| 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: |