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

Percentage of work done is not calculated correctly by mongoimport

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 3.4.1
    • Component/s: mongoimport
    • None

      It seems like the done/total computation for the progress is done inversely:

      $ mongoimport -d startups -h localhost:3434 companies.json 
      2017-02-13T13:32:06.666-0800	no collection specified
      2017-02-13T13:32:06.666-0800	using filename 'companies' as collection
      2017-02-13T13:32:06.676-0800	connected to: localhost:3434
      2017-02-13T13:32:09.670-0800	[########################] startups.companies	74.6MB/26.6MB (280.6%)
      2017-02-13T13:32:12.669-0800	[########################] startups.companies	74.6MB/47.4MB (157.4%)
      2017-02-13T13:32:15.668-0800	[########################] startups.companies	74.6MB/68.8MB (108.5%)
      2017-02-13T13:32:16.509-0800	[########################] startups.companies	74.6MB/74.6MB (100.0%)
      2017-02-13T13:32:16.509-0800	imported 18801 documents
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            daniel.coupal@mongodb.com Daniel Coupal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: