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

Gracefully handle failing to acquire the distributed lock in a sharded cluster

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.1.2
    • mongorestore
    • None

    Description

      "Failed: restore error: jstests_tool_dumprestore_sharded.cappedColl: error creating collection jstests_tool_dumprestore_sharded.cappedColl: error running create command: Lock for createDatabase is taken."
      

      When restoring multiple collections in parallel, each client will queue up on the distributed lock to create the database in the sharded cluster. The timeout was increased from 1 second to 5 seconds as part of SERVER-18504, but it would nice for the tools to still have retry logic for attempting to create the collection again, or alternatively create the collections using a single client and avoid this issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: