The way ProgressMeter is instantiated by mongodump causes it to appear to be exiting only partway through dumps when you use the --query option. In essence, ProgressMeter is instantiated using the size of the collection being dumped, even though a given query will only return a smaller subset of the results.
The expected behavior is for ProgressMeter to be instantiated with the length of the cursor (or at least a count of documents matching that query at start) so that mongodump appears to be completing at 100%.
Command line being used:
mongodump -h <host>:<port> -c col -q '{"_id": { "$gt": ObjectId(foo)}}' -d db -u user -p password --out ./dump
- duplicates
-
TOOLS-861 mongodump with query option doesn't display correct number of rows (and percentage) dumped during progress
- Closed