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

mongos pinning is conflated with connection pinning in operations

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Component/s: Unified Test Runner
    • None
    • Not Needed

      Currently assertSessionPinned / assertSessionUnpinned in the spec state:

      The assertSessionPinned operation instructs the test runner to assert that the given session is pinned to a mongos server.

      The assertSessionUnpinned operation instructs the test runner to assert that the given session is not pinned to a mongos server.

      Similarly, targetedFailPoint's wording is currently specific to mongoses:

      The targetedFailPoint operation instructs the test runner to configure a fail point on a specific mongos.

      Some of the transactions tests which we are expected to run against serverless (for example, this one) use these operations, even though no mongoses exist and what is really technically required to be pinned is a connection - and therefore implicitly a (non-mongos) host which the connection is to, though maybe many drivers end up pinning the host explicitly as an implementation detail.

      It seems like we may want to clarify the wording on these operations to cover the difference in expectation across topologies.

            Assignee:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: