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

Make _configsvrCommitChunkMigration idempotent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.5.1
    • Fix Version/s: 4.7.0
    • Component/s: Sharding
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 2020-07-13, Sharding 2020-06-29, Sharding 2020-07-27, Sharding 2020-08-10
    • Linked BF Score:
      40

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: