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

Update prose tests for mongos deprioritization during retryable ops

    • Needed - No Spec Changes
    • Hide
      • Complete this ticket alongside DRIVERS-1571.
      • Implement or update prose tests according to wording in f5bb605.
      • Verify that server deprioritization code paths are actually executed by prose tests as intended (may require manual debugging, inspecting trace logs, etc.).
      Show
      Complete this ticket alongside DRIVERS-1571 . Implement or update prose tests according to wording in f5bb605 . Verify that server deprioritization code paths are actually executed by prose tests as intended (may require manual debugging, inspecting trace logs, etc.).
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-4827 Fixed 1.26.0
      CXX-2824 Won't Do
      CSHARP-4958 Backlog
      GODRIVER-3121 Backlog 2.1.0
      JAVA-5320 In Code Review
      NODE-5905 Backlog
      MOTOR-1252 Duplicate
      PYTHON-4203 Backlog 4.8
      PHPC-2361 Backlog
      RUBY-3391 Scheduled
      RUST-1842 Backlog
      $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-4827 Fixed 1.26.0 CXX-2824 Won't Do CSHARP-4958 Backlog GODRIVER-3121 Backlog 2.1.0 JAVA-5320 In Code Review NODE-5905 Backlog MOTOR-1252 Duplicate PYTHON-4203 Backlog 4.8 PHPC-2361 Backlog RUBY-3391 Scheduled RUST-1842 Backlog

      Summary

      Prose tests introduced by DRIVERS-1571 may not execute relevant code paths due to (1) SDAM error handling behavior preceeding suitable server deprioritization and (2) Driver-specific SDAM behavior preventing deduction of a single-mongos connection as a Sharded topology.

      Drivers that have already implemented DRIVERS-1571 should update their prose tests accordingly to the new prose test specification; Drivers that have not yet implemented DRIVERS-1571 should implement the prose tests according to the updated specification. Drivers are encouraged to confirm that the updated prose tests correctly execute the code paths related to server deprioritization using debuggers, code coverage tools, etc.

      Motivation

      Who is the affected end user?

      Drivers implementing DRIVERS-1571.

      How does this affect the end user?

      Prose tests intended to test mongos redirection may not execute related code paths, potentially leading to false-positive test results for incorrect implementation of server deprioritization.

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

      Testing only.

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

      Potential false-positive test results may allow incorrect server deprioritization implementations to slip into Drivers releases and fail to satisfy the requirements of customer requests in DRIVERS-1571.

      Is this issue urgent?

      No.

      Is this ticket required by a downstream team?

      No.

      Is this ticket only for tests?

      Yes (but may lead to changes to Drivers implementations if removal of potential false-positives uncovers proper test failures).

      Acceptance Criteria

      N/A

            Assignee:
            ezra.chung@mongodb.com Ezra Chung
            Reporter:
            ezra.chung@mongodb.com Ezra Chung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: