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

FSM snapshot read tests mis-handle type information

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.5
    • Affects Version/s: None
    • Component/s: Storage
    • Fully Compatible
    • ALL
    • Storage NYC 2018-11-05
    • 7

      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:

      1. The assignment of `data.cursorId = 0` should instead be to `NumberLong(0)`.
      2. The FSM test should not send a `killCursors` command if the cursorId is 0.

            Assignee:
            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            Reporter:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: