[SERVER-66552] cleanupOrphanedWhileMigrating.js retries the split collection command indefinitely if fails Created: 18/May/22  Updated: 29/Oct/23  Resolved: 27/May/22

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

Type: Bug Priority: Major - P3
Reporter: Silvia Surroca Assignee: Silvia Surroca
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2022-05-30
Participants:

 Description   

The local function executeCommandWithRetries is not using the input parameter retries, so it's actually retrying the command forever if the command always returns a failure.

An alternative solution is to use the assert.soonNoExcept function to retry the command in case of an exception occurs.



 Comments   
Comment by Githook User [ 26/May/22 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-66552 cleanupOrphanedWhileMigrating.js retries the split collection command indefinitely if fails
Branch: master
https://github.com/mongodb/mongo/commit/895f32f070777bff07228f8700279cbc9d2e5c17

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