[SERVER-16181] DropDupos information missing or lost. Created: 17/Nov/14  Updated: 17/Nov/14  Resolved: 17/Nov/14

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

Type: Bug Priority: Major - P3
Reporter: Christoph Strobl Assignee: Ramon Fernandez Marina
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-14710 Remove dropDups support from index bu... Closed
related to SERVER-14812 Add a flag to drop unique violators i... Closed
Operating System: OS X
Participants:

 Description   

When creating an index having dropDupos: true the index is created but when getting index information via getIndexes() the dropDupos information seems to be missing.

db.a.ensureIndex( { a: 1 }, { unique: true, dropDups: true } )

2.6.5

{
  "v" : 1,
  "unique" : true,
  "key" : {
    "a" : 1
  },
  "name" : "a_1",
  "ns" : "test.a",
  "dropDups" : true
}

2.8.0-rc0

{
  "v" : 1,
  "unique" : true,
  "key" : {
    "a" : 1
  },
  "name" : "a_1",
  "ns" : "test.a"
}



 Comments   
Comment by Ramon Fernandez Marina [ 17/Nov/14 ]

Thanks for your report cstrobl. The dropDups functionality was removed as part of SERVER-14710 (and is now silently ignored), as it may remove data from collections. We've opened SERVER-14812 to investigate re-adding this functionality as part of a repair operation. Feel free to watch SERVER-14812 and vote for it if you need this functionality.

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