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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • 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 (Inactive)
            Reporter:
            Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: