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

Make waiting on the CappedInsertNotifier interruptible

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

      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:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: