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

mongoimport silently sets some CLI arguments if insertion mode != insert

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: mongoimport
    • None
    • Tools and Replicator
    • 185

      Problem Statement/Rationale

      Currently, if any --mode option besides `insert` is provided, mongoimport sets maintainInsertionOrder to true and numInsertionWorkers to be 1 (it will ignore the --numInsertionWorkers and --maintainInsertionOrder values provided by the user.) It does this here.

      Steps to Reproduce

      N/A

      Expected Results

      mongoimport should return an error for the following criteria if the mode != insert:

      • if numInsertionWorkers != 1
      • if maintainInsertionOrder != true

      Actual Results

      mongoimport doesn't throw an error and silently sets these values. This is pretty confusing.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ajay.vijayakumar@mongodb.com Ajay Vijayakumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: