Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-3076

HeartbeatFailed events should not be emitted when the client is closed

    • Type: Icon: Spec Change Spec Change
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Component/s: SDAM
    • None
    • Needed

      Summary

      When a MongoClient is explicitly closed, a serverHeartbeatFailed event should not be emitted if closing interrupts a monitoring connection's hello.

      Motivation

      Who is the affected end user?

      Users who have SDAM monitoring enabled.

      How does this affect the end user?

      Users might be confused as to why a heartbeat failed event is emitted when they explicitly closed their client.

      How likely is it that this problem or use case will occur?

      Unsure.

      If the problem does occur, what are the consequences and how severe are they?

      Users might be confused as to why a heartbeat failed event is emitted when they explicitly closed their client.

      Is this issue urgent?

      no.

      Is this ticket required by a downstream team?

      no.

      Is this ticket only for tests?

      no.

      Acceptance Criteria

      • Clarify that heartbeat failed events should not be emitted when heartbeats are interrupted when the client is explicitly closed.
      • Add tests to enforce this behavior.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: