[JAVA-2940] Is there any plan to add ClientSession to DBCollection? Created: 23/Aug/18  Updated: 11/Sep/19  Resolved: 19/Nov/18

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: 3.8.0
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Frank Wen Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

My application was developed several years ago. It use mongodb-java-driver version 2.x , which heavily depend on DBCollection.

Now I want to use transactions. I upgrade to MongoDB 4.0 and mongodb-java-driver 3.8.0. But find that I can not use ClientSession with DBCollection. If I use MongoCollection to replace DBCollection, it's a lot of work, almost whole re-writing of my application.

Is there any plan to add ClientSession to DBCollection? 

Thanks.

 



 Comments   
Comment by Ross Lawley [ 19/Nov/18 ]

Hi xbwen,

Just to let you know, having reviewed the ClientSession API there are no plans to update the DBCollection API to include ClientSession support. As such I'm closing this ticket as "Won't Fix". If you or others feel strongly that it should be included please comment - if there is enough support this decision will be revisited.

Many thanks,

Ross

Comment by Jeffrey Yemin [ 23/Aug/18 ]

Hi xbwen

We're definitely aware of this shortcoming. I wouldn't say we have a plan quite yet, but we are considering options to make it easier to use ClientSession and DBCollection together. I'll respond on this ticket when we are further along with our plan.

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