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

progress bar calculation is incorrect when restoring from a gzipped file

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.9, 3.3.11
    • Affects Version/s: 3.1.9
    • Component/s: None
    • Server Tools D (12/11/15), Server Tools E (01/08/16)
    • v3.2

      It's using (data size after decompression / total file size before decompression), so it's getting results >100% in the progress bar calculation.

      $ ./bin/mongorestore dump/tableau/flights201406.bson.gz --gzip
      2015-10-20T17:59:30.060-0400	checking for collection data in dump/tableau/flights201406.bson.gz
      2015-10-20T17:59:30.062-0400	restoring tableau.flights201406 from
      2015-10-20T17:59:33.061-0400	[########################]  tableau.flights201406  86.3 MB/23.5 MB  (366.8%)
      2015-10-20T17:59:36.062-0400	[########################]  tableau.flights201406  162.1 MB/23.5 MB  (688.6%)
      2015-10-20T17:59:39.064-0400	[########################]  tableau.flights201406  243.4 MB/23.5 MB  (1033.9%)
      2015-10-20T17:59:40.449-0400	[########################]  tableau.flights201406  272.7 MB/23.5 MB  (1158.6%)
      2015-10-20T17:59:40.449-0400	no indexes to restore
      2015-10-20T17:59:40.449-0400	finished restoring tableau.flights201406 (506304 documents)
      2015-10-20T17:59:40.449-0400	done
      

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: