[SERVER-34184] Commands with autocommit or startTransaction but without txnNumber and lsid should error Created: 28/Mar/18  Updated: 29/Oct/23  Resolved: 13/Apr/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.7.4

Type: Improvement Priority: Major - P3
Reporter: Shane Harvey Assignee: Siyuan Zhou
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-34479 Parse stmtId in transaction Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2018-04-23
Participants:

 Description   

Commands that include the "autocommit" or "startTransaction" field but do not also include the "txnNumber" and "lsid" fields should error.

Commands that include the "txnNumber" field but do not also include the "lsid" field should also error.

This will help drivers find bugs when implementing the transaction API.



 Comments   
Comment by Githook User [ 13/Apr/18 ]

Author:

{'email': 'siyuan.zhou@mongodb.com', 'name': 'Siyuan Zhou', 'username': 'visualzhou'}

Message: SERVER-34184 Trasnsaction fields are not accepted unless their preconditinal fileds are given.
Branch: master
https://github.com/mongodb/mongo/commit/4174e073c93e6023c4ba6243d60e40f30f809d52

Comment by Siyuan Zhou [ 13/Apr/18 ]

"stmtId" is not included in this ticket because we don't parse it. Parsing "stmtId" is tracked in SERVER-34479.

Generated at Thu Feb 08 04:35:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.