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

KillSessions should ignore CursorNotFound while killing all the cursors

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying, Storage
    • Labels:
      None
    • Storage Execution
    • ALL
    • Storage NYC 2019-04-22
    • 12

      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.

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

              Created:
              Updated:
              Resolved: