Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4608

Monitor should not perform checks for the same server in parallel

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.11.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Not Needed

      Currently, it is possible for parallel heartbeat requests to the server to occur at the same time. We should not be firing any new heartbeat requests before the current request returns, and we definitely should not be trying to establish two separate monitoring connections at the same time. This behavior creates a race conditions for two of the SDAM integration tests ('Network error on Monitor check', 'Network timeout on Monitor check') and is possibly the cause of at least some leaks in NODE-4573, since only one monitoring connection would ultimately be kept track of and closed.

      See SDAM spec on the subject: https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.rst#requesting-an-immediate-check

            Assignee:
            bailey.pearson@mongodb.com Bailey Pearson
            Reporter:
            daria.pardue@mongodb.com Daria Pardue
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: