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

mongodump's progressmeter inaccurate when using --query option

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongodump
    • Environment:
      Linux 2.6.x, MongoDB shell version: 1.8.2
    • Sprint:
      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

              • Assignee:
                backlog-server-platform Backlog - Platform Team
                Reporter:
                ian.whalen Ian Whalen
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: