[SERVER-10309] Mongo should not allow removal of shard key index when the collection is not empty Created: 24/Jul/13  Updated: 06/Dec/22  Resolved: 21/Nov/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.4.0
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Remon van Vliet Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All


Issue Links:
Duplicate
duplicates SERVER-6491 Prevent dropping shard key index when... Closed
Assigned Teams:
Sharding
Participants:

 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.



 Comments   
Comment by Asya Kamsky [ 21/Nov/15 ]

dup of SERVER-6491?

Generated at Thu Feb 08 03:22:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.