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

mongodump's progressmeter inaccurate when using --query option

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • None
    • None
    • mongodump
    • Linux 2.6.x, MongoDB shell version: 1.8.2
    • Platforms 2017-01-23

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: