[SERVER-60592] DDL participant commands need to ensure they make a write with their txnNumber Created: 11/Oct/21  Updated: 29/Oct/23  Resolved: 18/Oct/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 5.0.2, 5.1.0-rc1
Fix Version/s: 5.2.0, 5.0.4, 5.1.0-rc2

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

Issue Links:
Backports
Related
related to SERVER-56648 Make dropCollection resilient to netw... Closed
related to SERVER-56649 Make renameCollection resilient to ne... Closed
related to SERVER-56650 Make createCollection resilient to ne... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.1, v5.0
Sprint: Sharding EMEA 2021-11-01
Participants:

 Description   

Similarly to the dummy write we do at the end of _configsvrRemoveTags (and _configsvrRemoveTags and _configsvrRenameCollectionMetadata) in order to ensure that an oplog entry is written with the txnNumber of the "retryable write" _configsvrRemoveTags was ran on, we need to do the same with the following commands:

_shardsvrCreateCollectionParticipant
_shardsvrDropCollectionParticipant
_shardsvrRenameCollectionParticipant
_shardsvrRenameCollectionParticipantUnblock

This is because those commands may not have written anything on the oplog that durably stores that txnNumber.



 Comments   
Comment by Githook User [ 19/Oct/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-60592 DDL participant commands need to ensure they make a write with their txnNumber

(cherry picked from commit c83185229c960f321d2eb121ff6a4e8a043dd124)
Branch: v5.0
https://github.com/mongodb/mongo/commit/0cb321aa871de24da3c28106d27d0af4ae4a2819

Comment by Githook User [ 19/Oct/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-60592 DDL participant commands need to ensure they make a write with their txnNumber

(cherry picked from commit c83185229c960f321d2eb121ff6a4e8a043dd124)
Branch: v5.1
https://github.com/mongodb/mongo/commit/91b84f870430100c11e931e42b11642cab8f09e3

Comment by Githook User [ 18/Oct/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-60592 DDL participant commands need to ensure they make a write with their txnNumber
Branch: master
https://github.com/mongodb/mongo/commit/c83185229c960f321d2eb121ff6a4e8a043dd124

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