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

"Lock for createDatabase is taken" triggered by mongorestore restoring multiple collections in parallel

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.1.4
    • Sharding, Tools
    • Fully Compatible

    Description

      max.hirschhorn@10gen.com located this in a patch build:

      https://evergreen.mongodb.com/task/mongodb_mongo_master_linux_64_2518e60c495a700cbb44237425ecf064db970dbd_15_05_15_19_37_32_multiversion_linux_64

      it is a consequence of mongorestore's parallel restore triggering multiple collections being created at once, each needing to get the database lock on the server side but only one.
      Unclear if this should be implemented as a fix in the tool itself to serialize collection creation to avoid this, or improve the lock handling in the server (increase timeout?) to prevent the error

      Attachments

        Issue Links

          Activity

            People

              daniel.alabi@10gen.com Daniel Alabi
              mikeo@mongodb.com Michael O'Brien
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: