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

Exchange producer/consumer may get stuck if number of producers is close to number of read tickets

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • Hide

      Run jstests/cqf_parallel/index.js or jstests/cqf_parallel/groupby.js with the storageEngineConcurrencyAdjustmentAlgorithm server parameter set to "" and the storageEngineConcurrentReadTransactions server parameter set to either 5 or 6.

      Show
      Run jstests/cqf_parallel/index.js or jstests/cqf_parallel/groupby.js with the storageEngineConcurrencyAdjustmentAlgorithm server parameter set to "" and the storageEngineConcurrentReadTransactions server parameter set to either 5 or 6.
    • 149
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When we spawn exchange producer threads, each one takes a global IS lock (and thus also takes a read ticket). If the number of read tickets is less than, equal to, or just slightly above the number of producers we're creating, we may get stuck; some of the producers will queue for a read ticket and block at the global lock acquisition forever.

            Assignee:
            svilen.mihaylov@mongodb.com Svilen Mihaylov (Inactive)
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: