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

deadlock in mongorestore of archive

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.9
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Tools 13 (04/22/16)
    • v3.2

      To repro, setup a database, test with three collections (each containing about ~150K documents). Next dump the database to an archive:

      mongodump --numThreads 1 -d fullblackbox --archive=blackbox.bson

      Now attempt to restore:

      mongorestore --archive=blackbox.bson -j 3

      Note that the deadlock event depends on the number of different collections referenced by contiguously interleaved documents in the archive. In this particular example, if that number is greater than 1, a deadlock occurs (just a hypothesis, I haven't verified this). For reference, I've attached a sample blackbox.bson created using the mongodump command above that triggers the deadlock.

            Assignee:
            william.banfield William Banfield
            Reporter:
            adinoyi.omuya@mongodb.com Adinoyi Omuya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: