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

Make mongos reload the shard registry and re-establish changeStream cursors when encountering a 'retryNeeded' entry

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.6
    • Sprint:
      Repl 2017-10-23, Repl 2017-11-13, Repl 2017-12-04
    • Linked BF Score:
      0

      Description

      Shards can return a 'retryNeeded' entry as part of a changeStream on a sharded collection. This happens when the shard recently donated a chunk for this collection to a shard that has no chunks for that collection. When a mongos encounters such an entry it needs to reload the shard registry (to pick up any recently added shards) and then establish changeStream cursors on any new shards it discovers. It will also need to filter out the 'retryNeeded' entry so it never gets back to the client.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matthew.russotto Matthew Russotto
              Reporter:
              spencer Spencer Brody (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: