Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-1958

aggregate-write-readPreference tests should not expect readConcern to be passed to pre-4.2 servers

    XMLWordPrintableJSON

Details

    • Spec Change
    • Status: Implementing
    • Minor - P4
    • Resolution: Unresolved
    • None
    • CRUD
    • Needed
    • Hide

      Drivers should sync unified CRUD spec tests with mongodb/specifications@dce2c48.

      Show
      Drivers should sync unified CRUD spec tests with mongodb/specifications@dce2c48 .

    Description

      Summary

      The original spec tests for DRIVERS-823 ($out/$merge on secondaries) included assertions that a client-level readConcern option would be passed to pre-5.0 servers. Read concerns for write stages were not generally supported before MongoDB 4.2 (DRIVERS-610), so those tests should specify a lower version requirement to avoid potential failures.

      Motivation

      Who is the affected end user?

      Driver test suites.

      How does this affect the end user?

      Failing tests for pre-4.2 server versions.

      How likely is it that this problem or use case will occur?

      Always, unless a driver is sending readConcern to pre-4.2 servers and no server-side error is raised. The tests happen to use read concern level "local", so it's possible that it would be silently ignored (I've not verified that).

      If the problem does occur, what are the consequences and how severe are they?

      Minor annoyance with a failing test; however, this should not affect users.

      Is this issue urgent?

      Drivers may consider this urgent to resolve failing CI.

      Is this ticket required by a downstream team?

      No.

      Is this ticket only for tests?

      Yes.

      Attachments

        Issue Links

          Activity

            People

              jmikola@mongodb.com Jeremy Mikola
              jmikola@mongodb.com Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: