[DRIVERS-2831] Add more comprehensive unified tests to server selection logging Created: 07/Feb/24  Updated: 07/Feb/24

Status: Needs Triage
Project: Drivers
Component/s: Logging, Server Selection
Fix Version/s: None

Type: Spec Change Priority: Unknown
Reporter: Noah Stapp Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Tested
is testing DRIVERS-1671 Add log messages to Server selection ... Implementing
Driver Changes: Not Needed

 Description   

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.


Generated at Thu Feb 08 08:26:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.