Details

    • Icon: Sub-task Sub-task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 3.0.1
    • mongoimport
    • None
    • Amazon Linux
    • Server Tools D (12/11/15), Server Tools E (01/08/16), Server Tools F (01/29/16)

    Description

      The following is preventing us from creating automated test scripts to validate bulk document imports. The mongo shell output generated by mongoimport appears to not be parseable in the remote host shell so the error condition cannot be captured.

      The mongoimport utility should return an error code rather than indicate success when this condition occurs.

      [ec2-user@ip-172-31-28-233 bin]$ mongoimport --port 27017 --db test --collection grades --jsonArray --file ../import/records.json
      2015-03-27T14:35:55.126+0000 connected to: localhost:27017
      2015-03-27T14:35:55.149+0000 error inserting documents: could not contact primary for replica set rs7
      2015-03-27T14:35:55.149+0000 imported 0 documents
      [ec2-user@ip-172-31-28-233 bin]$ echo $?
      0
      [ec2-user@ip-172-31-28-233 bin]$

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhoulihan Rick Houlihan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: