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

Add more comprehensive unified tests to server selection logging

    • Not Needed

      Summary

      The unified tests for DRIVERS-1671 only verify that insert and bulk write operations correctly log their operation names. The specification requires that all server selection logs include the name of the operation being selected for, not just read and write commands. Verifying that an implementation completely follows this requirement is difficult without more comprehensive test cases.

      Additionally, the specification states that "When server selection is being performed to select a server for a command, this MUST be the command name." After the changes in DRIVERS-2530, are there any remaining cases where server selection is performed for something besides a command?

      Motivation

      Who is the affected end user?

      Any user of the server selection logging.

      How does this affect the end user?

      Incorrect implementations could result in incomplete or inaccurate logs being exposed to users.

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

      Depending on how a driver's implementation is structured, it could be either very likely or very unlikely that an operation name is logged incorrectly.

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

      Incorrect log messages could lead users and support staff down misleading paths or causes.

      Is this issue urgent?

      No.

      Is this ticket required by a downstream team?

      No.

      Is this ticket only for tests?

      Yes.

            Assignee:
            Unassigned Unassigned
            Reporter:
            noah.stapp@mongodb.com Noah Stapp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: