[SERVER-38345] Hide internal transaction coordinator state Created: 30/Nov/18  Updated: 29/Oct/23  Resolved: 04/Jan/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.1.7

Type: Task Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Currently there is a public method to get the state of a transaction coordinator. Since callers of this won't be locking the internal mutex of the coordinator, it's possible they may make a decision based on a stale state value. It's currently not a correctness issue but it's worth reconsidering the design to prevent problems in the future and to have better encapsulation.



 Comments   
Comment by Matthew Saltz (Inactive) [ 04/Jan/19 ]

Fixed as part of https://github.com/mongodb/mongo/commit/310b84d607506406c78925693b4bf71dd95e35e5

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