Change move collection command to lazily track unsharded collection

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Marcos José Grillo Ramirez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: