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

Migration manager recovery should handle failed findIntersectingChunk during refineShardKey

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • v4.4
    • Sharding 2021-02-22, Sharding 2021-03-08, Sharding 2021-03-22, Sharding 2021-04-05
    • 26

    Description

      The call to findIntersectingChunkWithSimpleCollation is being called with the original shard key after a refineShardKey operation. This results in a ShardKeyNotFound exception being thrown which goes unhandled.

      This should have been addressed by the changes in https://jira.mongodb.org/browse/SERVER-48365 by making sure that the migration recovery entries are written while holding the dist lock. However, there is an interleaving where this is not the case.

      Attachments

        Activity

          People

            tommaso.tocci@mongodb.com Tommaso Tocci
            alex.taskov@mongodb.com Alexander Taskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: