FSM snapshot read tests mis-handle type information

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: