Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15536

Resharding Requirement Docs is too lax on what users can do to reshards

    XMLWordPrintableJSON

Details

    Description

      https://www.mongodb.com/docs/manual/core/sharding-reshard-a-collection/

      Current docs message:
      "You must perform one of these tasks:

      • rewrite your application's queries to use both the current shard key and the new shard key
      • stop your application and then:
      • rewrite your application's queries to use the new shard key
      • wait until the resharding of the collection completes (to monitor the resharding process, use a $currentOp pipeline stage)
      • deploy your rewritten application"

      The message should instead be:
      "you must rewrite your application's queries to use both the current shard key and the new shard key.

      tip
      If you can afford some downtime, you can stop your application, rewrite your application to use the new shard key, wait until resharding completes, then deploy your rewritten application."

      Attachments

        Activity

          People

            Unassigned Unassigned
            garaudy.etienne@mongodb.com Garaudy Etienne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 25 weeks, 6 days ago