[SERVER-6417] duplicate _ids possible when values exceed max index key size Created: 12/Jul/12  Updated: 13/Jul/12  Resolved: 13/Jul/12

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

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-3372 Allow indexing fields of arbitrary le... Closed
Related
related to SERVER-5290 fail to insert docs with fields too l... Closed
Operating System: ALL
Participants:

 Description   

Observed behavior: _id values larger than the max key size are not indexed and so duplicates are not prevented
Expected behavior: _id value larger than max key size is not allowed

Test

> c.drop()
true
> var big = new Array( 10000 ).toString()
> c.save( { _id:big } )
> c.save( { _id:big } )
> c.count()
2
> c.find( { _id:big, dummy:null } ).hint( { $natural:1 } ).itcount()
2



 Comments   
Comment by Eliot Horowitz (Inactive) [ 13/Jul/12 ]

really the same as SERVER-3372

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