-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.4.8
-
Component/s: Index Maintenance, Replication
-
None
-
ALL
The following sequence of operations:
db.coll.insert( { "_id":"keyvaluethat'slongerthan1024length", "a": 5 } ); db.coll.remove( { "a" : 5 } );
results in primary of a replica set having zero documents, but secondary having one document, since remove on the secondary attempts to remove by "_id".
Now if there is a unique index on "a" and you insert a document on the primary with "a":5 the secondary will now crash with duplicate key error while the primary successfully has only a single value.
- 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