Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1033

mongoimport can't import a given json file in 3.0.7

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.12, 3.3.6, 3.2.7
    • Affects Version/s: 3.0.7, 3.2.0, 3.3.0
    • Component/s: mongoimport
    • None
    • Server Tools 10 (02/19/16), Server Tools 11 (03/11/16), Server Tools 12 (04/01/16)

      Looks like a modification in mongoimport in 3.0.7 prevents it to import the posts.json file from M101P, homework 5.1

      mongod=3.0.6 mongoimport=3.0.6
      [mms-user@tse-7 versions]$ 3.0.6/bin/mongoimport -d test -c c306 ~/posts.json
      2016-01-09T05:29:30.183+0000	connected to: localhost
      2016-01-09T05:29:32.036+0000	imported 1000 documents
      
      mongod=3.0.6 mongoimport=3.0.7
      [mms-user@tse-7 versions]$ 3.0.7/bin/mongoimport -d test -c c307 ~/posts.json
      2016-01-09T05:30:35.422+0000	connected to: localhost
      2016-01-09T05:30:36.801+0000	error inserting documents: lost connection to server
      2016-01-09T05:30:36.801+0000	Failed: lost connection to server
      2016-01-09T05:30:36.801+0000	imported 0 documents
      
      mongod=3.0.7 mongoimport=3.0.7
      [mms-user@tse-7 versions]$ 3.0.7/bin/mongoimport -d test -c c307 ~/posts.json
      2016-01-09T05:34:54.723+0000	connected to: localhost
      2016-01-09T05:34:56.109+0000	error inserting documents: lost connection to server
      2016-01-09T05:34:56.109+0000	Failed: lost connection to server
      2016-01-09T05:34:56.109+0000	imported 0 documents
      

      The problem is still there in 3.2.0

      mongod=3.2.0 mongoimport=3.2.0
      [mms-user@tse-7 versions]$ 3.2.0/bin/mongoimport -d test -c c320 ~/posts.json
      2016-01-09T05:37:06.245+0000	connected to: localhost
      2016-01-09T05:37:07.630+0000	Failed: lost connection to server
      2016-01-09T05:37:07.630+0000	imported 0 documents
      

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            daniel.coupal@mongodb.com Daniel Coupal
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: