[SERVER-48607] Skip migration recovery on non-primary nodes Created: 05/Jun/20  Updated: 29/Oct/23  Resolved: 09/Jun/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 4.5 Required
Fix Version/s: 4.7.0

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Tommaso Tocci
Resolution: Fixed Votes: 0
Labels: PM-1645-Milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2020-06-15
Participants:

 Description   

https://github.com/mongodb/mongo/blob/f7c2b0c472b9c0ed9e12301cc5951ecf9f886722/src/mongo/db/s/shard_filtering_metadata_refresh.cpp#L162

The condition is slightly incorrect, because it includes all nodes roles except for secondary, while the correct one will just perform migration recovery when the node is primary



 Comments   
Comment by Githook User [ 08/Jun/20 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-48607 Skip migration recovery on non-primary nodes
Branch: master
https://github.com/mongodb/mongo/commit/d1f007a30fc2be7faf66747b8bf3fc13c7c41938

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