Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-19

mongodump's progressmeter inaccurate when using --query option

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: mongodump
    • Environment:
      Linux 2.6.x, MongoDB shell version: 1.8.2
    • Platforms 2017-01-23

      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

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: