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

Feature support should take FCV into account

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      We have this code in the test suite:

      def array_filters_enabled?
        $array_filters_enabled ||= scanned_client_server!.features.array_filters_enabled?
      end
      

      This looks at the features of the server and, supposedly, figures out if array filters can be used.

      On a 3.6 server with 3.4 FCV, this test returns true because features are entirely derived from wire protocol version range. However, the server as it is running does not actually support array filters:

      Mongo::Error::BulkWriteError: Mongo::Error::BulkWriteError: The featureCompatibilityVersion must be 3.6 to use arrayFilters. See http://dochub.mongodb.org/core/3.6-feature-compatibility. (72)

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

              Created:
              Updated:
              Resolved: