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

Use single mongos in racy unacknowledged write tests

    • Needed
    • Hide

      Commits for syncing spec/prose tests

      Context for other referenced/linked tickets

      •  Complete alongside DRIVERS-2877 if that ticket is not already implemented.
      Show
      Commits for syncing spec/prose tests  Sync unified command logging and monitoring tests with mongodb/specifications@517ce31 Context for other referenced/linked tickets  Complete alongside DRIVERS-2877 if that ticket is not already implemented.
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-5597 Backlog
      CXX-3045 Backlog
      CSHARP-5120 Done 2.27.0
      GODRIVER-3238 Backlog 2.1.0
      JAVA-5491 Fixed 5.2.0
      NODE-6202 Done
      MOTOR-1324 Duplicate
      PYTHON-4478 Fixed 4.9
      RUBY-3486 Ready for Work
      RUST-1964 Won't Do
      PHPLIB-1461 Fixed 1.20.0
      $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-5597 Backlog CXX-3045 Backlog CSHARP-5120 Done 2.27.0 GODRIVER-3238 Backlog 2.1.0 JAVA-5491 Fixed 5.2.0 NODE-6202 Done MOTOR-1324 Duplicate PYTHON-4478 Fixed 4.9 RUBY-3486 Ready for Work RUST-1964 Won't Do PHPLIB-1461 Fixed 1.20.0

      Summary

      DRIVERS-2877 attempted to fix racy unacknowledged write tests by following the write operation with a query:

      Since connection pool size defaults to 1, the next operation will use the same connection, and won't complete until after completion of the unacknowledged write.

      However, it neglected to add useMultipleMongoses: false to the client under test, which means it's possible that the query executes on a different mongos than the preceding unacknowledged write. This resulted in sporadic failures (see: PHPLIB-1461).

      What is the problem or use case, what are we trying to achieve?

      Motivation

      Is this issue urgent?

      No.

      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
            Jeffrey Yemin Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: