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

handleHeartbeatResponse_forTest puts an invalid handle on the heartbeats list

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Vesselina Ratcheva (Inactive)
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: