Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-67748

SERVER - Add additional participant information to router from shard

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible

      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

        1. image-2022-07-01-16-01-48-100.png
          image-2022-07-01-16-01-48-100.png
          45 kB
        2. txn_log
          1.14 MB

            Assignee:
            kruti.shah@mongodb.com Kruti Shah
            Reporter:
            rachita.dhawan@mongodb.com Rachita Dhawan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: