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.
- is related to
-
SERVER-37009 Handle missing sessionDocToKill in snapshot_read_kill_operations.js
- Closed
- related to
-
SERVER-38931 Apply relevant changes to snapshot_read_kill_operations.js to 4.0 branch
- Closed