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

Migration manager recovery should handle failed findIntersectingChunk during refineShardKey

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Sharding 2021-02-22, Sharding 2021-03-08, Sharding 2021-03-22, Sharding 2021-04-05
    • Linked BF Score:
      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

            Assignee:
            tommaso.tocci Tommaso Tocci
            Reporter:
            alex.taskov Alexander Taskov (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: