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

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Sharding Team
            Reporter:
            Ruoping Xu
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: