For better or worse, `killCursors` requires the list of cursor IDs to be of type NumberLong. cursorIds returned in a response are always of the appropriate type and round-trip appropriately. However this helper assigns the cursorId to a floating point 0. Calling `killCursors` on this ID results in a type error.
I'm not sure if there's value in sending a kill cursors command with a cursorId of 0, but I would recommend two changes:
- The assignment of `data.cursorId = 0` should instead be to `NumberLong(0)`.
- The FSM test should not send a `killCursors` command if the cursorId is 0.
- is related to
-
SERVER-37009 Handle missing sessionDocToKill in snapshot_read_kill_operations.js
- Closed