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

handleHeartbeatResponse_forTest puts an invalid handle on the heartbeats list

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.0.0-rc3, 5.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Repl 2021-06-14
    • 144

    Description

      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).

      Attachments

        Activity

          People

            vesselina.ratcheva@mongodb.com Vesselina Ratcheva
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: