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

WaitForDelete may not be honored in case of retry

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc8, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v6.0
    • Sharding EMEA 2022-05-30
    • 150

      The donor shard is first committing the migration on the config server and then waiting for orphans to be deleted.

      The _configsvrMoveRange command calls into Balancer::moveRange that retrieves the current shard from config.chunks and returns early in case the range is already present on the recipient shard.

      Given the above mentioned conditions, in case the config server command is retried it may happen that it succeeds before the donor finishes waiting for range deletions.

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: