handleHeartbeatResponse_forTest puts an invalid handle on the heartbeats list

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.0-rc3, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Repl 2021-06-14
    • 144
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The invalid handle is on the list only for a very short period, but the period spans two critical sections so there is an opportunity for another thread to get in and do something. If the "something" involves calling cancelAllHeartbeats, the test will crash due to canceling an invalid handle.

      We should fix this, probably by using a valid dummy handle (e.g. to a do-nothing lambda).

              Assignee:
              Vesselina Ratcheva (Inactive)
              Reporter:
              Matthew Russotto
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: