[SERVER-58761] [Upgrade/downgrade] Make setFCV delete the config.transactions entries for all child sessions Created: 22/Jul/21  Updated: 29/Oct/23  Resolved: 06/Dec/21

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

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Jason Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-61090 [Upgrade/downgrade] Make setFCV wait ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-11-15, Sharding 2021-11-29, Sharding 2021-12-13
Participants:
Story Points: 3

 Description   

Make primary mongod do the following after setting the targetVersion for downgrading from latest (to last-lts or last-continuous) and acquiring the global S lock (i.e. here):

  • For each session that has an internal session that executed retryable internal transactions for a command with txnNumber (i.e. as indicated by its lsid.txnNumber) greater or equal to the latest txnNumber in the parent session, update the config.transactions entry for the parent session to have txnNumber equal to that lsid.txnNumber and lastWriteOpTime equal to {t: 1, ts: Timestamp(1, 0)}.
  • Delete config.transactions entries for all child sessions.
  • Explicitly replicate these writes by specifying {ns: "config.transactions"} in the generated update and delete oplog entries.


 Comments   
Comment by Githook User [ 06/Dec/21 ]

Author:

{'name': 'Jason Zhang', 'email': 'jason.zhang@mongodb.com', 'username': 'jz1242'}

Message: SERVER-58761 Make setFCV delete the config.transactions entries for all child sessions
Branch: master
https://github.com/mongodb/mongo/commit/8c82e865d31fe143173753689bca0170bd715250

Generated at Thu Feb 08 05:45:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.