[JAVA-2811] Should not send lsid to a standalone Created: 14/Mar/18 Updated: 28/Oct/23 Resolved: 03/May/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Session Management |
| Affects Version/s: | None |
| Fix Version/s: | 3.8.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
The driver supports explicit and implicit sessions when connected to standalone servers, which goes against the spec, which says:
The check for whether a server supports sessions should exclude servers of type standalone. |
| Comments |
| Comment by Jeffrey Yemin [ 17/Oct/19 ] | ||||||||||||||||
|
thergfire@gmail.com, you are incorrect that standalone servers support transactions. Note what happens when you try to do work in the transaction:
For local development ease, I believe you can create a single member replica set, and that will support transactions.
| ||||||||||||||||
| Comment by Nikolay Firov [ 17/Oct/19 ] | ||||||||||||||||
|
Transactions requires sessions, and standalone server supports them: $ mongo > session = db.getMongo().startSession() > session.commitTransaction()
Why did you disable them in client? It makes harder to test code on local machine. | ||||||||||||||||
| Comment by Githook User [ 03/May/18 ] | ||||||||||||||||
|
Author: {'email': 'jeff.yemin@10gen.com', 'name': 'Jeff Yemin', 'username': 'jyemin'}Message: The driver sessions specification requires that client sessions not |