[SERVER-42005] Don't refer to deleted memory in transaction router unit test Created: 28/Jun/19  Updated: 29/Oct/23  Resolved: 01/Jul/19

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

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Sharding 2019-07-15
Participants:
Linked BF Score: 37

 Description   

With changes to the transaction router, we create a new TransactionParticipant struct when we need to change the ReadOnly value. The unit test assumes that the TransactionParticipant will remain the same across changes. There is only place, here, where that is not the case anymore. The test will need to be updated to create a new TransactionParticipant object.



 Comments   
Comment by Blake Oler [ 02/Jul/19 ]

Backport rejected for reason referred to in comment above.

Comment by Blake Oler [ 01/Jul/19 ]

The backport for SERVER-41676 will include this fix, so removing the 4.2.0 fixVersion here.

Comment by Githook User [ 01/Jul/19 ]

Author:

{'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'}

Message: SERVER-42005 Don't refer to deleted memory in transaction router unit test
Branch: master
https://github.com/mongodb/mongo/commit/861a2c38ad8bb6bbd7b5cc80b38af0db523d1d54

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