[GODRIVER-1778] Reject HeartbeatFrequencyMS of less than 500ms Created: 26/Oct/20  Updated: 30/Mar/22

Status: Backlog
Project: Go Driver
Component/s: Server Discovery and Monitoring
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The Server Monitoring spec explicitly forbids setting a heartbeatFrequencyMS of less than 500ms:

For both multi- and single-threaded drivers, the driver MUST NOT permit users to configure it less than minHeartbeatFrequencyMS (500ms).

Setting a heartbeatFrequencyMS of less than 500ms may only have an observable difference when monitoring 4.4+ servers with streamable ismaster. Previous polling behavior appears to respect the 500ms minimum delay looking at x/mongo/driver/topology/server.go).


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