[SERVER-83481] Do not set WriteType as WriteWithoutShardKeyWithId for transactional writes Created: 20/Nov/23  Updated: 28/Nov/23  Resolved: 28/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Abdul Qadeer Assignee: Abdul Qadeer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Cluster Scalability
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Cluster Scalability 2023-12-11
Participants:
Story Points: 2

 Description   

As reported by kaitlin.mahar@mongodb.com, we are checking !opCtx->isMultiDocumentTransaction() to ascertain if we are in a transaction or not. This method is incorrect as it only checks if user requested the same. This should be replaced with a check for null value of TransactionRouter::get



 Comments   
Comment by Githook User [ 28/Nov/23 ]

Author:

{'name': 'Abdul Qadeer', 'email': 'abdul.qadeer@mongodb.com', 'username': 'zorro786'}

Message: SERVER-83481 Fix check for in-transaction for WithoutShardKeyWithId
Branch: master
https://github.com/mongodb/mongo/commit/1937d9c47d1a7ff67c9c0bcad31010fa1a5645f9

Generated at Thu Feb 08 06:52:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.