Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Duplicate
-
None
-
None
-
None
-
ALL
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
|
Attachments
Issue Links
- duplicates
-
SERVER-3372 Allow indexing fields of arbitrary length
-
- Closed
-
- related to
-
SERVER-5290 fail to insert docs with fields too long to index, and fail to create indexes where doc keys are too big
-
- Closed
-