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

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • Sharding

      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 :: "

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            ruoping Ruoping Xu
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: