[SERVER-76749] runTransactionOnShardingCatalog should not assign the current operation context session id to the new operation context Created: 02/May/23  Updated: 02/Jan/24  Resolved: 04/May/23

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

Type: Task Priority: Major - P3
Reporter: Enrico Golfieri Assignee: Enrico Golfieri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
causes SERVER-84468 Fix deadlock when running runTransact... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Sprint: Sharding EMEA 2023-05-15
Participants:

 Description   

Right now the runTransactionOnShardingCatalog assigns the operation context 's session id to the new operation context in case the input osi is empty.

This is wrong becauseĀ 

  • a user would naturally expect to assign an empty osi in case of empty input osi
  • passing the operation context session id will end up in a dead lock if the session was already checked outĀ 


 Comments   
Comment by Githook User [ 04/May/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-76749 runTransactionOnShardingCatalog should leave the new operation context OSI empty if the input OSI is empty

( cherry picked from b98740e2d27df0fa95632a1ac40adf140512e51c )
Branch: v7.0
https://github.com/mongodb/mongo/commit/095d52de8f905166d6827ea89a0fed6715ce8044

Comment by Githook User [ 04/May/23 ]

Author:

{'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}

Message: SERVER-76749 runTransactionOnShardingCatalog should leave the new operation context OSI empty if the input OSI is empty
Branch: master
https://github.com/mongodb/mongo/commit/b98740e2d27df0fa95632a1ac40adf140512e51c

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