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

    XMLWordPrintable

    Details

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

      Description

      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

       

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: