[SERVER-66848] Internal transactions test command API use should use owned BSON Created: 27/May/22  Updated: 29/Oct/23  Resolved: 27/May/22

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

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

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Sharding NYC 2022-05-30
Participants:

 Description   

The internal transactions test command passes a shared pointer containing a vector of TestInternalTransactionsCommandInfo structs to its transaction API use which have unowned BSON that is owned by the test command itself. If the command is interrupted and exits before the API finishes, the API can crash when accessing the unowned BSON. Instead the command should pass owned BSON to the API.



 Comments   
Comment by Githook User [ 27/May/22 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-66848 Internal transactions test command API use should use owned BSON

(cherry picked from commit 097483e9f0f9bf9a0083e3930ac4339db512e22a)
Branch: v6.0
https://github.com/mongodb/mongo/commit/cd8d0b4122f95ae4bb020c7391dffa9297938914

Comment by Githook User [ 27/May/22 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-66848 Internal transactions test command API use should use owned BSON
Branch: master
https://github.com/mongodb/mongo/commit/097483e9f0f9bf9a0083e3930ac4339db512e22a

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