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

KillSessions should ignore CursorNotFound while killing all the cursors

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying, Storage
    • None
    • Storage Execution
    • ALL
    • Storage NYC 2019-04-22
    • 12

    Description

      There is a TOCTOU bug in the code of KillSessions command: The cursorMap mutex is not held while each cursor is being killed. It is possible that a KillCursors command jumps in and kills a cursor which will be but has not been killed by thisĀ KillSessions. KillSessions will then get a CursorNotFound exception.

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: