-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.6.6, 3.6.7
-
Component/s: mongodump
-
None
-
Environment:OSX (server and client)
-
(copied to CRM)
Inconsistent document count from mongodump when using the --query argument and performing an equality match on an object-based _id field.
Problem appears to be reproducible on a standalone, RS or sharded cluster.
Steps to Reproduce
Data set
db.coll.insertMany([ { _id: {id: "ABC", version: 1}, text: "a" } { _id: {id: "ABC", version: 2}, text: "a" } { _id: {id: "ABC", version: 3}, text: "a" } { _id: {id: "ABC", version: 4}, text: "a" } { _id: {id: "ABC", version: 5}, text: "a" } { _id: {id: "ABC", version: 6}, text: "a" } { _id: {id: "ABC", version: 7}, text: "a" } ])
mongodump command
> mongodump -d test -c coll --query '{_id: {id: "ABC", version:7 }}'
results
~ 90% of the time 1 document is dumped
~ 10% of the time 0 documents are dumped
- duplicates
-
TOOLS-2276 dump/export/files query should use extJSON v2 and ordered BSON
- Closed