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

mongoimport stops with exit code 1 when import JSON lines file when first too big document is encountered

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.0
    • Component/s: mongoimport
    • None
    • Environment:
      Linux (Docker mongo:4.2)

      When importing a JSON lines file which contains 100K JSON documents and one document that exceeds the 16Mb limit, mongoimport stops and exits. It should continue processing all remaining documents and skip the faulty ones. 

       No special options where used like --stopOnError. The following command is issued via a python subprocess

       
      'mongoimport',
      '--quiet',
      '--host', self.host,
      '-u', self.user,
      '-p', self.password,
      '--db', self.database,
      '--authenticationDatabase', self.auth_database,
      '--collection', collection,
      '--file', file

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            alex.peelman@gmail.com Alex Peelman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: