We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ee8e67 commit adb6fadCopy full SHA for adb6fad
lib/mongo/error/invalid_server_preference.rb
@@ -33,7 +33,9 @@ class InvalidServerPreference < Error
33
# Error message for when the max staleness is not at least twice the heartbeat frequency.
34
#
35
# @since 2.4.0
36
- INVALID_MAX_STALENESS = "max_staleness value is too small.".freeze
+ INVALID_MAX_STALENESS = "`max_staleness` value is too small. It must be at least " +
37
+ "`ServerSelector::SMALLEST_MAX_STALENESS_SECONDS` and (the cluster's heartbeat_frequency " +
38
+ "setting + `Cluster::IDLE_WRITE_PERIOD_SECONDS`).".freeze
39
40
# Error message when max staleness cannot be used because one or more servers has version < 3.4.
41
0 commit comments