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

Do not allow index for shard key to be dropped on sharded collections

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Index Maintenance
    • Labels:
      None

      Description

      With sharded collections, the index that the shard key is dependent on can be dropped, this prevents moveChunk() from working on the collection.

      Steps to reproduce:
      1. Start with an already sharded collection.
      2. Drop the shard key from the indexes.
      3. Attempt to run moveChunk(). This should fail with "errmsg" : "can't find index in storeCurrentLocs :: caused by :: "

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-sharding Backlog - Sharding Team
              Reporter:
              ruoping Ruoping Xu
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: