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

mongoimport should report more info when using high verbosity mode

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.0, 4.0.12
    • Component/s: mongoimport
    • None

      Despite running the following command with "verbose=4", mongoimport still does not report the failing line:

      $ mongoimport --drop -d sample -c routes --verbose=4 routes.json
      2019-08-20T11:14:54.787-0700	using write concern: &{majority false 0}
      2019-08-20T11:14:54.788-0700	using 8 decoding workers
      2019-08-20T11:14:54.788-0700	using 1 insert workers
      2019-08-20T11:14:54.788-0700	will listen for SIGTERM, SIGINT, and SIGKILL
      2019-08-20T11:14:54.799-0700	filesize: 13321173 bytes
      2019-08-20T11:14:54.799-0700	using fields: 
      2019-08-20T11:14:54.800-0700	connected to: mongodb://localhost/
      2019-08-20T11:14:54.800-0700	ns: sample.routes
      2019-08-20T11:14:54.800-0700	connected to node type: replset
      2019-08-20T11:14:54.800-0700	dropping: sample.routes
      2019-08-20T11:14:55.270-0700	Failed: invalid JSON input. Position: 151. Character: N
      2019-08-20T11:14:55.270-0700	5000 document(s) imported successfully. 0 document(s) failed to import.
      

      mongoimport should have:

      • a verbosity level outputting the exact failing line
      • a verbosity level outputting all lines

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

              Created:
              Updated: