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

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

    • Fully Compatible
    • ALL
    • v5.0
    • Sharding 2021-06-14, Sharding 2021-05-31
    • 1

      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.

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

              Created:
              Updated:
              Resolved: