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

WaitForDelete may not be honored in case of retry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.0.0-rc8, 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • Sharding EMEA 2022-05-30
    • 150

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: