Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7329

mongoimport does not report all failures

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: Tools
    • Labels:
      None
    • Operating System:
      ALL

      Description

      in this example server is a --configsvr so it won't accept data on a non-config database.

      ~/main $ ./mongoimport -h localhost --port 27019  -c foo < data.json
      connected to: localhost:27019
      Thu Oct 11 11:07:06 imported 1 objects
       
      ~/main $ ./mongo --port 27019
      MongoDB shell version: 2.3.0-pre-
      connecting to: 127.0.0.1:27019/test
      configsvr> show dbs
      local	(empty)
      test	(empty)
      configsvr> use test
      switched to db test
      configsvr> db.foo.count()
      0
      configsvr> show collections
      configsvr>

      In addition to the above which is pretty bad, i recommend we also call getlasterror with w:majority or w:all before terminating.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dwight_10gen Dwight Merriman
              Reporter:
              dwight_10gen Dwight Merriman
              Participants:
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: