Migration manager recovery should handle failed findIntersectingChunk during refineShardKey

XMLWordPrintableJSON

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

      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.

            Assignee:
            Tommaso Tocci
            Reporter:
            Alexander Taskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: