Make _configsvrCommitChunkMigration idempotent

XMLWordPrintableJSON

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

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

              Created:
              Updated:
              Resolved: