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

Make awaitData cursors block rather than busy wait in the OP_GET_MORE path

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.6
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Quint Iteration 5, Quint Iteration 6

      Description

      In the getMore command path, threads servicing awaitData cursors will always block rather than busy wait. For OP_GET_MORE, however, the thread will block if it is tailing the oplog but for any other capped collection it will busy wait.

      We can use the per-capped collection condition variable added under SERVER-18184 to remove busy waiting from the OP_GET_MORE path.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: