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

killSessions command can return CursorNotFound error for successful kill

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.14, 4.0.11, 4.2.0-rc2, 4.3.1
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.2, v4.0, v3.6
    • Sharding 2019-07-01
    • 14

    Description

      When the killSessions command is executed, it will attempt to kill cursors associated with the sessions being killed. As part of this, it will build a list of cursors owned by a session and then kill each cursor in the list. It is possible that in between list fetch and kill that a given cursor is killed by an external operation. When this occurs, a CursorNotFound error will be returned on attempt to kill. While we will continue to kill the remainder of the list, this error will be returned to the user. This is misleading because the end result is the same with all session resources being freed.

      Attachments

        Activity

          People

            blake.oler@mongodb.com Blake Oler
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: