[SERVER-57744] Test infrastructure does not handle config server stepdowns on ManualInterventionRequired errors Created: 16/Jun/21  Updated: 29/Oct/23  Resolved: 17/Jun/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 5.1.0, 5.0.0-rc1
Fix Version/s: 5.0.0-rc3, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Marcos José Grillo Ramirez Assignee: Marcos José Grillo Ramirez
Resolution: Fixed Votes: 0
Labels: PM-1965-Cleanup
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File BF-21548.patch     File check_manual_intervention.js    
Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Steps To Reproduce:

1. Include the manual intervention helper
2. Set FCV version 4.4
2. Shard a collection and step down the node before writing the config.collections entry
3. Step down the config server when the script is trying to clean up the config.chunks collection

Sprint: Sharding EMEA 2021-06-28
Participants:
Linked BF Score: 158

 Description   

The legacy shard collection path is prepared to detect and warn about leftover metadata if finds entries on config.chunks when sharding a collection. There is a helper script that, if included, automatically tries to clean up config.chunks but, this helper is not ready to handle if the config server steps down when cleaning the metadata.

We could add a try/catch block and retry if there is any stepdown error.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 18/Jun/21 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-57744 Use retryable writes when removing chunks from the manual intervention helper

(cherry picked from commit d2a47c173586244500a7ac0465e94aabc8871e91)
Branch: v5.0
https://github.com/mongodb/mongo/commit/8d2014e097904b60f7df66e9786f01b98876e0a4

Comment by Githook User [ 17/Jun/21 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-57744 Use retryable writes when removing chunks from the manual intervention helper
Branch: master
https://github.com/mongodb/mongo/commit/d2a47c173586244500a7ac0465e94aabc8871e91

Comment by Marcos José Grillo Ramirez [ 16/Jun/21 ]

Adding reproducible files, BF-21548.patch check_manual_intervention.js

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