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

Creating an unsharded collection can cause dist lock to time out

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.7.3
    • Fix Version/s: 4.0.0-rc1, 4.1.1
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Sprint:
      Sharding 2018-05-21, Sharding 2018-06-04
    • Linked BF Score:
      17

      Description

      when enough threads try to do it on the same database at the same time.

      This is because all of them will try to grab the dist lock on the database. The dist lock algorithm doesn't have fair scheduling so it is possible for a single thread to be starved by other threads if there is enough contention on it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              janna.golden Janna Golden
              Reporter:
              renctan Randolph Tan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: