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

mongorestore crashes because of excessive use of open files (exception 24)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker - P1
    • Resolution: Works as Designed
    • Affects Version/s: 3.0.6
    • Fix Version/s: None
    • Component/s: mongorestore
    • Environment:
      ubuntu 12.04 LTS running mongodb 3.0.6 64 bit (bundled download from the website)
    • Backport Requested:
      v2.6

      Description

      mongorestore crashes importing a database dump with a large number of collections:

      Failed: restore error: DATABASE.COLLECTION: error creating indexes for DATABASE.COLLECTION: createIndex error: exception: 24: Too many open files

      As a consequence the database is not imported completely and the server daemon crashes!

      Elevating the number of open files possible for ubuntu to the maximum accepted value (4096) it still crashes, just at a later stage than before.

      I think it is definitely a bug - not a feature - if the program runs out of filehandles when already set to a maximum of 4096. It should really free some file resources on the way!
      Also since restoring a database is not that much of a time-critical application in most cases. I could not think of any justification for such an excessive use of resources that makes it unusable for large databases.

      With the current version I could not restore my database, which is rather bad

      Best,

      Maik

        Attachments

          Activity

            People

            Assignee:
            gabriel.russell Gabriel Russell
            Reporter:
            bugdigger Mark Henzel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: