[SERVER-79189] Move primary coordinator silently exit on errors Created: 21/Jul/23  Updated: 29/Oct/23  Resolved: 24/Jul/23

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 7.1.0-rc0, 7.0.0-rc8
Fix Version/s: 7.1.0-rc0, 7.0.0-rc9

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

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-73929 Improve the resilient movePrimary's e... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Steps To Reproduce:

1. Start a movePrimary and reach the commit phase
2. Step down the node, wait until the coordinator resumes
3. Cause any failure in the exit critical section phase, like for example, step down the config server

Sprint: Sharding EMEA 2023-07-24, Sharding EMEA 2023-08-07
Participants:
Linked BF Score: 134

 Description   

After SERVER-73929 we use the onError chain in order to cleanup any problem caused in the clone phase. Unfortunately, the code is missing a return status; statement, causing that any error after the commit phase to not be retried, which could lead for example to maintain the critical section even after finishing the move primary command.



 Comments   
Comment by Githook User [ 24/Jul/23 ]

Author:

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

Message: SERVER-79189 Add return statement in onError chain on move primary coordinator

(cherry picked from commit c5f1a86ad73ef32131c30ba73a37f571af233c97)
Branch: v7.0
https://github.com/mongodb/mongo/commit/cb9ae4719d58c9b1d44de1678949a5d432138bc1

Comment by Githook User [ 21/Jul/23 ]

Author:

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

Message: SERVER-79189 Add return statement in onError chain on move primary coordinator
Branch: master
https://github.com/mongodb/mongo/commit/c5f1a86ad73ef32131c30ba73a37f571af233c97

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