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

FSM snapshot read tests mis-handle type information

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.5
    • None
    • Storage
    • Fully Compatible
    • ALL
    • Storage NYC 2018-11-05
    • 7

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: