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

killSessions command can return CursorNotFound error for successful kill

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.14, 4.0.11, 4.2.0-rc2, 4.3.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.2, v4.0, v3.6
    • Sharding 2019-07-01
    • 14

      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.

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

              Created:
              Updated:
              Resolved: