[DRIVERS-624] Ensure 4.0 drivers return an error when attempting sharded transactions on 4.2 Created: 20/Mar/19  Updated: 02/Mar/21

Status: Implementing
Project: Drivers
Component/s: Transactions
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Shane Harvey Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on JAVA-3240 No exception thrown when attempting s... Closed
depends on PYTHON-1781 PyMongo 3.7 does not raise an error w... Closed
depends on CXX-1760 Ensure 4.0 drivers return an error wh... Closed
depends on GODRIVER-943 Ensure 4.0 drivers return an error wh... Closed
depends on MOTOR-329 Ensure 4.0 drivers return an error wh... Closed
depends on NODE-1931 Ensure 4.0 drivers return an error wh... Closed
depends on RUBY-1791 Ensure 4.0 drivers return an error wh... Closed
depends on CDRIVER-3067 Ensure 4.0 drivers return an error wh... Closed
depends on CSHARP-2561 StartTransaction should throw an exce... Closed
depends on PHPC-1359 Ensure 4.0 drivers return an error wh... Closed
Related
Driver Compliance:
Key Status/Resolution FixVersion
PYTHON-1781 Fixed 3.8
JAVA-3240 Fixed 3.10.2
CSHARP-2561 Fixed 2.8.1
CDRIVER-3067 Fixed 1.14.1
PERL-1086 Works as Designed
RUBY-1791 Fixed 2.20.0
SCALA-515 Done
MOTOR-329 Won't Fix
PHPC-1359 Fixed 1.5.4
NODE-1931 Fixed 3.3.0
CXX-1760 Done
GODRIVER-943 Won't Do

 Description   

The 4.0 transaction spec says:

startTransaction SHOULD report an error if the driver can detect that transactions are not supported by the deployment. A deployment does not support transactions when the deployment does not support sessions, or maxWireVersion < 7, or the topology type is Sharded

https://github.com/mongodb/specifications/blob/cf7248b2574b1a5397a6e18362acfe66f2b55a43/source/transactions/transactions.rst#starttransaction

Please verify whether your MongoDB 4.0-supporting driver release raises a client side error in this case.


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