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

mongoimport from mongoexport file with --jsonArray in 2.0 broken

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.1, 2.1.0
    • Affects Version/s: 2.0.0
    • Component/s: Tools
    • None
    • Environment:
      Windows 7 64 bit
    • ALL

      mongoimport from mongoexport file with --jsonArray in 2.0 is broken

      mongoimport only imports 4/10 items in the collection if I use --jsonArray

      Repro
      MongoDB shell version: 2.0.0
      connecting to: test
      > db.test_collection.insert(

      {a:1}

      )
      > db.test_collection.insert(

      {a:2}

      )
      > db.test_collection.insert(

      {a:3}

      )
      > db.test_collection.insert(

      {a:4}

      )
      > db.test_collection.insert(

      {a:5}

      )
      > db.test_collection.insert(

      {a:6}

      )
      > db.test_collection.insert(

      {a:7}

      )
      > db.test_collection.insert(

      {a:8}

      )
      > db.test_collection.insert(

      {a:9}

      )
      > db.test_collection.insert(

      {a:10}

      )

      > mongoexport -d test -c test_collection -o test.json --jsonArray
      connected to: 127.0.0.1
      exported 10 records

      > mongoimport -d test -c test_collection --file test.json --jsonArray
      connected to: 127.0.0.1
      imported 4 objects

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            kenny.inggs Kenny Inggs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: