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

MaxTimeMSExceeded on _configsvrMoveChunk can lead to blocking future migrations for that chunk

    • Sharding EMEA
    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-12-26

      If moveChunk is sent with maxTimeMS, the following scenario can occur:
      1. The config server sends moveChunk to the shard. The shard starts running it.
      2. The config server hits maxTimeMS, which then causes it to fail to delete the relevant config.migrations doc, which happens in the destructor of the object created here, since the OperationContext has been interrupted.

      If the config server gets another moveChunk attempt for that range, it will fail with DuplicateKeyError on config.migrations. config.migrations is keyed on namespace and the min value of the range being moved, so this will happen indefinitely for any chunk with the same min value.

            Assignee:
            silvia.surroca@mongodb.com Silvia Surroca
            Reporter:
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: