[SERVER-2048] Cannot remove _id_ index from capped collection Created: 01/Nov/10  Updated: 06/Dec/22  Resolved: 02/Apr/20

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Backlog - Storage Execution Team
Resolution: Won't Fix Votes: 7
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-2019 _id index on capped collection : inco... Closed
Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 Description   

If for some reason you create a {_id:1} index on capped collection, there is no way to remove it.

both dropIndex("id") and .dropIndexes() fail

> db.testCapped.dropIndex("id")

{ "nIndexesWas" : 1, "errmsg" : "may not delete _id index", "ok" : 0 }

> db.testCapped.dropIndexes()
{
"nIndexesWas" : 1,
"msg" : "non-_id indexes dropped for collection",
"ok" : 1
}



 Comments   
Comment by William Tiu [ 12/Dec/11 ]

After talking to the 10gen guys, was told to add an up vote to this. Since it's been over a year since this ticket has been updated, I figure a comment is warranted as well to possibly up the chances of it getting fixed.

Generated at Thu Feb 08 02:58:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.