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

Stop mutating server descriptions

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.0.rc0
    • Affects Version/s: None
    • Component/s: Spec Comp
    • None

      The Description#unknown! method mutates server description, whereas the spec requests that descriptions be immutable (https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#immutable-data).

      While in theory a description can be mutated prior to it being used by a server, it is more robust to not ever mutate and make new unknown descriptions instead which should be easy enough.

            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: