-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Spec Comp
-
Fully Compatible
https://github.com/mongodb/specifications/blob/master/source/max-staleness/max-staleness.rst#api specifies that the driver must accept -1 as a valid max staleness value indicating no max staleness. However Ruby driver warns that -1 is not a valid value:
irb(main):024:0> Mongo::URI.new('mongodb://test.host/?maxStalenessSeconds=-1').uri_options W, [2019-03-03T22:12:01.007931 #4742] WARN -- : MONGODB | Invalid max staleness value: -1 => {"read"=>{"max_staleness"=>nil}}