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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.6
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Quint Iteration 5, Quint Iteration 6
    • 0

      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.

            Assignee:
            qingyang.chen Qingyang Chen
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: