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

mongoimport from mongoexport file with --jsonArray in 2.0 broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1, 2.1.0
    • Component/s: Tools
    • Labels:
      None
    • Environment:
      Windows 7 64 bit
    • Operating System:
      ALL

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: