Make waiting on the CappedInsertNotifier interruptible

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying, Replication
    • Query Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The called to CappedInsertNotifier::wait() function in getmore_cmd.cpp uses the remaining maxTimeMS as how long to wait on the condition variable. This wait isn't interruptible, which makes it impossible to kill this operation via killOp() until its maxTimeMS has expired.

      This would also make it easier to test the behavior changes to tailable, awaitData cursors (see jstests/noPassthrough/awaitdata_getmore_cmd.js) that was done as part of SERVER-29128.

              Assignee:
              [DO NOT USE] Backlog - Query Execution
              Reporter:
              Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: