[JAVA-4860] Do not perform server selection to determine sessions support Created: 30/Jan/23  Updated: 05/Jan/24  Resolved: 09/Mar/23

Status: Closed
Project: Java Driver
Component/s: Sessions
Affects Version/s: None
Fix Version/s: 4.10.0

Type: Improvement Priority: Major - P3
Reporter: PM Bot Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from DRIVERS-2530 Do not perform server selection to de... Implementing
Related
is related to JAVA-5288 Sessions do not work with deployments... Closed
Epic Link: Easier debugging with standardized logging
Quarter: FY23Q4, FY24Q1
Upstream Changes Summary:

DRIVERS-2530:
Drivers should implement the sessions spec changes in 90cfaef, removing the server selection step for session support and relying exclusively on the `logicalSessionTimeoutMinutes` reported by the checked out connection instead. Two new prose tests are added to ensure the user-facing behavior for explicit and implicit sessions remains unchanged when communicating with a server that does not support sessions. This work is a pre-requisite for sever selection logging (DRIVERS-1671), which will define additional tests to ensure no server selection is performed for session support.

Backwards Compatibility: Minor Change
Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

This ticket was split from DRIVERS-2530, please see that ticket for a detailed description.



 Comments   
Comment by Jeffrey Yemin [ 09/Mar/23 ]

Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}
Message: Do not perform server selection to determine sessions support (#1092)

Instead, check for session support during operation execution after the connection is checked out.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/dfd6e7cb27388d9b75915fa990dfadb3d5a4fbab

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