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

reshardCollection command is shuffling data even when requested shard key already matches

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.0
    • Sprint:
      Sharding 2021-06-14, Sharding 2021-05-31
    • Story Points:
      1

      Description

      The reshardCollection command should instead return {ok: 1} without migrating any data when the request shard key pattern already matches the current one.

      The reshardCollection command is a long-running operation and the client's connection may get disconnected. It is important for the reshardCollection command to be manually retried by the client without causing a new instance of resharding the collection to occur had the earlier instance already completed.

        Attachments

          Activity

            People

            Assignee:
            haley.connelly Haley Connelly
            Reporter:
            max.hirschhorn Max Hirschhorn
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: