[DRIVERS-2089] Add events for polling SRV records Created: 03/Jun/19  Updated: 19/Aug/22

Status: Backlog
Project: Drivers
Component/s: Initial DNS Seedlist Discovery, SDAM
Fix Version/s: None

Type: Spec Change Priority: Major - P3
Reporter: Prashant Mital (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Driver Changes: Needed

 Description   

SRV polling (introduced in https://github.com/mongodb/specifications/blob/master/source/polling-srv-records-for-mongos-discovery/polling-srv-records-for-mongos-discovery.rst) adds a new server-discovery mechanism which is subject to the same success/failure modes as existing server discovery mechanisms. However, the SRV polling spec does not specify any events that are to be published when polling the DNS records results in success/failure. This could make it difficult to diagnose issues that stem from this new feature, as it would be hard to obtain runtime information about DNS polling.

We should update the spec to require drivers to publish at least the following events (names are suggestions):

  • SRVLookupFailedEvent - published when SRV records cannot be retrieved due to a DNS failure.
  • SRVRecordsEmptyEvent - published when the DNS lookup results in an empty seedlist.
  • SRVRecordsChangedEvent - published when the DNS lookup results in a new seedlist.

Generated at Thu Feb 08 08:24:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.