[JAVA-2928] Detect if transactions are not supported by the server Created: 15/Aug/18 Updated: 28/Oct/23 Resolved: 24/Jan/19 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Transaction Management |
| Affects Version/s: | None |
| Fix Version/s: | 3.11.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Ross Lawley | Assignee: | John Stewart (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
When running:
Against a 3.6 replicaset or sharded cluster the user gets the following error:
Its quite unclear as to what the cause of the actual issue is. For other scenarios the errors are much clearer:
The spec states:
A wire check would allow for clearer error messages for users trying to use transactions on an older server. |
| Comments |
| Comment by Jeffrey Yemin [ 25/Jan/19 ] |
|
commit 668ccb549d8bbb803cfac20598a0a23189fbc11e (HEAD -> master, mongodb/master) detect if transactions are not supported by the server |
| Comment by mongdb-test [ 10/Dec/18 ] |
|
hi,Is there any solution? |