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

Make waiting on the CappedInsertNotifier interruptible

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying, Replication
    • Query Execution

    Description

      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.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: