-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
-
From the specifications, ServerHeartbeatStartedEvent should be "published when the server monitor sends its hello or legacy hello call to the server": https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring.rst#events-api
In addition to publishing before sending a hello command, the Go Driver will publish ServerHeartbeatStartedEvent when checking on the server after a connection is closed / a check is canceled: https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/topology/server.go#L802 . This is not defined behavior and could result in a publication without sending a hello command to the server.
Suggest removing the block on L802 .
- depends on
-
DRIVERS-2677 Clarify whether heartbeat started event should be emitted before connection establishment in ServerMonitor
-
- Implementing
-
- has to be done before
-
GODRIVER-2943 Fix failing logging tests
-
- Closed
-
- is depended on by
-
GODRIVER-2943 Fix failing logging tests
-
- Closed
-
- related to
-
DRIVERS-2677 Clarify whether heartbeat started event should be emitted before connection establishment in ServerMonitor
-
- Implementing
-