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

Mongo should not allow removal of shard key index when the collection is not empty

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Environment:
      All

      Description

      Currently it is allowed to manually remove the shard key index, even if the collection is not empty. I cannot think of a situation where this is desirable and since SERVER-1506 there is not necessarily an index dedicated to the shard key.

      I think it should reject removal of this index if the collection is sharded. In other words, the only way to remove the shard key collection is to drop the collection.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-sharding Backlog - Sharding Team
              Reporter:
              remonvv Remon van Vliet
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: