[JAVA-3745] Support sessions when connected to a standalone server Created: 26/May/20  Updated: 28/Oct/23  Resolved: 15/Jul/20

Status: Closed
Project: Java Driver
Component/s: Session Management
Affects Version/s: 3.12.4
Fix Version/s: 3.12.7, 4.1.0

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

MongoDB 3.6.17 standalone. Java driver 3.12.4.


Issue Links:
Depends
Backwards Compatibility: Minor Change

 Description   

Customer developers use MongoDB 3.6 inside a docker container which is derived from an image with standalone configuration.  They are upgrading their Java web services to use sessions.  This entails switching from using legacy APIs to new APIs found in the Uber driver 3.12.4.  When they run their automated unit tests they receive the error...

com.mongodb.MongoClientException: Sessions are not supported by the MongoDB cluster to which this client is connected

They are concerned they need to change their DevOps flows to accommodate new MongoDB features, such as sessions.  Discussions with jeff.yemin@gmail.com on Slack indicate a standalone db supports sessions (but with limited functionality).  The driver, on the other hand, blocks the interaction. 



 Comments   
Comment by Jeffrey Yemin [ 15/Jul/20 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Support explicit and implicit sessions on standalone servers

JAVA-3745
Branch: 4.1.x
https://github.com/mongodb/mongo-java-driver/commit/d3fb9a491f3a40c19735a88372a31e6f0eb31404

Comment by Githook User [ 15/Jul/20 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Support explicit and implicit sessions on standalone servers

JAVA-3745
Branch: 3.12.x
https://github.com/mongodb/mongo-java-driver/commit/e0572db771b682f6c50006965f64c5de1f17a1b3

Comment by Githook User [ 15/Jul/20 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Support explicit and implicit sessions on standalone servers

JAVA-3745
Branch: 4.0.x
https://github.com/mongodb/mongo-java-driver/commit/cea4b53bd734f1fa2d65d00e1699237288a7a197

Comment by Githook User [ 15/Jul/20 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Support explicit and implicit sessions on standalone servers

JAVA-3745
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/4fbaf44b64b454a1a219bb5864f67ead7bff3a8b

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