[SERVER-80538] New refine collection shard key might resume migrations on unretriable errors Created: 30/Aug/23  Updated: 29/Oct/23  Resolved: 07/Sep/23

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 7.2.0-rc0, 7.1.0-rc2

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

Issue Links:
Backports
Problem/Incident
is caused by SERVER-76486 Make RefineShardKey coordinator autho... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.1
Sprint: Sharding EMEA 2023-09-04, Sharding EMEA 2023-09-18
Participants:

 Description   

SERVER-76486 added a resume migrations call in the onCompletion callback, however, if there is a non-retriable error in a phase greater than kRemoteIndexValidation the migrations will be resumed when they shouldn't, because we have the forward progress until success guarantee. However, kRemoteIndexValidation is a validation phase that must happen without any migrations, and an error might be thrown in case we find some shard that does not have the index created, so, we should ensure that we resume migrations of the onCompletion callback only happens on non-retriable error in the kRemoteIndexValidation phase.



 Comments   
Comment by Githook User [ 07/Sep/23 ]

Author:

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

Message: SERVER-80538 Resume migrations on error in refine collection shard key only if index validation fails

(cherry picked from commit c2a06e36d132054836741be211c63cf3ee39a3b5)
Branch: v7.1
https://github.com/mongodb/mongo/commit/5628968c1dce3e46d4919d256661c0250e2a54e0

Comment by Githook User [ 07/Sep/23 ]

Author:

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

Message: SERVER-80538 Resume migrations on error in refine collection shard key only if index validation fails
Branch: master
https://github.com/mongodb/mongo/commit/c2a06e36d132054836741be211c63cf3ee39a3b5

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