mongoimport from mongoexport file with --jsonArray in 2.0 broken

XMLWordPrintableJSON

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

      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 Brody (Inactive)
            Reporter:
            Kenny Inggs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: