[SERVER-67748] SERVER - Add additional participant information to router from shard Created: 01/Jul/22  Updated: 29/Oct/23  Resolved: 19/Aug/22

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

Type: Improvement Priority: Major - P3
Reporter: Rachita Dhawan Assignee: Kruti Shah
Resolution: Fixed Votes: 0
Labels: sharding-nyc-subteam2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2022-07-01-16-01-48-100.png     HTML File txn_log    
Backwards Compatibility: Fully Compatible
Participants:

 Description   

When executing transactions on collections with global indexes, the set of shards participating in a transaction are the union of the shards containing the source data together with the shards containing any global index data that must be modified for the documents involved in a transaction.

Updating the shard to router message will allow mongod processes to add participants to an active transaction to accommodate any index maintenance that must occur as a result of modifying the source data.

This tickets requires adding additionalParticipants field as shown below. Mongos sends a transaction request to a shard(with attached transaction details) and the following message is received as the response. 

txn_log

 

Tests to try : 
buildscripts/resmoke.py run jstests/sharding/mongos_not_retry_commands_in_transactions.js |tee log
 
buildscripts/resmoke.py run txn_two_phase_commit_basic.js |tee log



 Comments   
Comment by Githook User [ 17/Aug/22 ]

Author:

{'name': 'Kruti Shah', 'email': 'kruti139@gmail.com', 'username': 'krutishah139'}

Message: SERVER-67748 added the additional participant parameter
Branch: master
https://github.com/mongodb/mongo/commit/56f8d207426ff9bcce91f70be65b020305075fee

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