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

Create fail point to make distributed lock timeout 10 minutes for dropCollection

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.9
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding A (10/09/15)

      When testing sharding commands in the fsm concurrency suite, the high volume of traffic on the distributed lock often causes the dropCollection command to return a LockBusy error simply because other sharding commands such as moveChunk, mergeChunks, and splitChunk are still running and/or contending on the distributed lock.

      Having the timeout set to a much higher value (but still lower than the lock takeover timeout) allows for:
      1) test readability and simplicity: a failure in the test corresponds to an actual failure.
      2) exercising the server's retry logic rather than the test's.

            Assignee:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: