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

Remove shard does not wait for migrations to finish on the drained shard

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Sharding EMEA
    • ALL

      The removeShard command is only checking locally in the config server if the removed shard does not own any more chunks, however, this check can pass right after the latest migration commits the chunk on the config server, but has not finished the cleanup, meaning that important persistency cleanup tasks like starting the donor shard range deletion, removing the recipient shard's range deletion document document and even removing the coordinator document, might never be executed if a user shuts down the shard immediately after receiving a successful result of a removeShard command.

      Remove shard should check with the draining shard if all migrations are finished and successful.

            Assignee:
            backlog-server-sharding-emea [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: