Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30579

Change resumeTokens to include collection UUID instead of namespace

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.13
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • Repl 2017-08-21, Repl 2017-09-11

      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.

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: