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

Change move collection command to lazily track unsharded collection

    • Catalog and Routing
    • Fully Compatible

      moveCollection uses the resharding machinery to do an online movement of user data. There is a precondition though: the collection must be tracked. The purpose of this ticket is to make moveCollection to track the collection if it's unsharded and then use the resharding machinery.

      This could be achieved by for example creating a _shardsvrMoveCollection command that first spawns a coordinator to track the collection, and then spawns the resharding coordinator.

      We could also modify the _shardsvrReshardCollection command so that it tracks and then spawns the coordinator if the provenance is moveCollection.

      This ticket will also be responsible for updating the create collection coordinator to allow tracking an existing collection.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: