Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1764

-1 is not accepted as a valid max staleness value

    • 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}}
      

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: