Skip to content

Commit 688b369

Browse files
authored
DRIVERS-2875: add support for TopologyDescriptionChangedEvent to expectEvents (#1556)
1 parent 35aae1a commit 688b369

6 files changed

+1258
-4
lines changed

source/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ Initial Server Description
111111

112112
``ServerDescription`` objects MUST be initialized with a default description in an “unknown” state, guaranteeing that the previous description in the events and log messages will never be null.
113113

114+
115+
Initial Topology Description
116+
----------------------------
117+
118+
The first ``TopologyDescriptionChangedEvent`` to be emitted from a monitored Topology MUST set its ``previousDescription`` property to be a ``TopologyDescription`` object in the "unknown" state.
119+
114120
----------
115121
Events API
116122
----------
@@ -698,6 +704,8 @@ See the `README <https://github.com/mongodb/specifications/server-discovery-and-
698704
Changelog
699705
=========
700706

707+
:2024-03-29: Updated to clarify expected initial value of TopologyDescriptionChangedEvent's
708+
previousDescription field
701709
:2024-01-04: Updated to clarify when ServerHeartbeatStartedEvent should be emitted
702710
:2023-03-31: Renamed to include "logging" in the title. Reorganized contents and made consistent with CLAM spec, and added requirements
703711
for SDAM log messages.

0 commit comments

Comments
 (0)