WaitForDelete may not be honored in case of retry

XMLWordPrintableJSON

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

      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
              Reporter:
              Pierlauro Sciarelli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: