[DRIVERS-2529] Add tests for endSessions cleanup behavior Created: 23/Jan/23  Updated: 02/Feb/23

Status: Backlog
Project: Drivers
Component/s: Sessions
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Patrick Freed Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CSHARP-4512 Update CMAP logging tests to include ... Backlog
Related
is related to RUST-1437 Driver does not send endSessions on c... Backlog
Driver Changes: Not Needed

 Description   

Summary

The sessions specification requires that drivers execute an endSessions command on client close, but there aren't any tests for this behavior. The Rust driver accidentally omitted this feature and it went unnoticed for a while as a result (RUST-1437).

Now that Client.close is supported in the Unified Test Format, automated tests could be used for this purpose.

Motivation

Who is the affected end user?

Driver authors, users if the feature isn't implemented properly.

How does this affect the end user?

The endSessions command might not be run, or it might be run in unstandardized ways across drivers.

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

This codepath is executed every time a client shuts down, so it's on the main path.

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

Long running operations may not be cancelled in some drivers when the client is closed, or the behavior for cancelling them may vary from driver to driver.

Is this issue urgent?

No

Is this ticket required by a downstream team?

Shell maybe? (see NODE-3263)

Is this ticket only for tests?

Yes


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