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

Make _configsvrCommitChunkMigration idempotent

    • Fully Compatible
    • ALL
    • Sharding 2020-07-13, Sharding 2020-06-29, Sharding 2020-07-27, Sharding 2020-08-10
    • 40

      Right now, if _configsvrCommitChunkMigration is run twice upon the config server, the second call results in an error even if the migration actually succeeded.

      Possible fixes:

      • On the config server, checking both donor and recipient in checkChunkMatchesRequest
      • On the shard, double check that the chunk is still owned before a call to _configsvrCommitChunkMigration (it doesn't make the command idempotent, but it guarantees that it doesn't get called more than once)

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: