[SERVER-77611] Add a static constructor/destructor for the TransactionResources decoration Created: 31/May/23  Updated: 29/Oct/23  Resolved: 29/Jun/23

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

Type: Task Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: PM-2144-Milestone-0, auto-reverted
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-77213 Move the all transactions-related sta... Backlog
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2023-06-12, Sharding EMEA 2023-06-26, Sharding EMEA 2023-07-10
Participants:
Linked BF Score: 148

 Description   

We are going in the direction of having all resources related to a transaction to be attached to the TransactionResources object, which will control their lifetime and the OperationContext will be just a view into the TransactionResources rather than a lifetime controller.

This ticket is to create a static constructor/destructor on that decoration so that we can use that as a base for initialisation of the default values of these resources rather than them being initialised at random points of the OperationContext lifetime.



 Comments   
Comment by Githook User [ 03/Jul/23 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-77611 Add a static constructor/destructor for the TransactionResources decoration
Branch: EVG-17874-taskgen-test
https://github.com/mongodb/mongo/commit/4692c30dac775d3f666243d321b9e898baa3b511

Comment by Githook User [ 28/Jun/23 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-77611 Add a static constructor/destructor for the TransactionResources decoration
Branch: master
https://github.com/mongodb/mongo/commit/4692c30dac775d3f666243d321b9e898baa3b511

Comment by xgen-buildbaron-user [ 23/Jun/23 ]

Ticket re-opened due to revert. concurrency_sharded_clusterwide_ops_add_remove_shards began a consistent failure of clusterwide_ops_with_add_remove_shards:CheckReplDBHashInBackground,clusterwide_ops_with_add_remove_shards:CheckMetadataConsistencyInBackground,jstests\concurrency\fsm_workloads_add_remove_shards\clusterwide_ops_with_add_remove_shards.js

Comment by Githook User [ 23/Jun/23 ]

Author:

{'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com', 'username': ''}

Message: Revert "SERVER-77611 Add a static constructor/destructor for the TransactionResources decoration"

This reverts commit e3740e5b03bd44b6a8ed94185ca2dba96da89eaa.
Branch: master
https://github.com/mongodb/mongo/commit/37a1efaf30c62359603def5a92939813567a070c

Comment by Githook User [ 23/Jun/23 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-77611 Add a static constructor/destructor for the TransactionResources decoration
Branch: master
https://github.com/mongodb/mongo/commit/e3740e5b03bd44b6a8ed94185ca2dba96da89eaa

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