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

    • Type: Icon: Spec Change Spec Change
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Component/s: 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 .
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-4195 Done 1.21.0
      CXX-2396 Backlog
      CSHARP-3925 Duplicate
      GODRIVER-2195 Done
      JAVA-4363 Fixed 4.4.0
      NODE-3694 Done
      PHPLIB-745 Fixed 1.10.0
      PYTHON-2954 Duplicate
      MOTOR-839 Duplicate
      RUBY-2818 Fixed 2.17.0
      RUST-1067 Duplicate
      SWIFT-1381 Duplicate
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-4195 Done 1.21.0 CXX-2396 Backlog CSHARP-3925 Duplicate GODRIVER-2195 Done JAVA-4363 Fixed 4.4.0 NODE-3694 Done PHPLIB-745 Fixed 1.10.0 PYTHON-2954 Duplicate MOTOR-839 Duplicate RUBY-2818 Fixed 2.17.0 RUST-1067 Duplicate SWIFT-1381 Duplicate

      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.

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

              Created:
              Updated: