[SERVER-80408] Decide which resharding collection cloner to use at the beginning Created: 24/Aug/23  Updated: 29/Oct/23  Resolved: 29/Aug/23

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

Type: Bug Priority: Major - P3
Reporter: Jiawei Yang Assignee: Jiawei Yang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.1
Sprint: Repl 2023-09-04
Participants:
Linked BF Score: 148

 Description   

Currently, we check the feature flag to determine which code path should we go during resharding collection cloning, which could lead to unexpected behavior when the FCV downgrades and the resharding collection cloner is switched in the middle.

Note: Though setFCV aborts all running resharding, it first sets FCV to transition FCV so the running resharding operations can see the feature flag change before it is aborted.



 Comments   
Comment by Githook User [ 30/Aug/23 ]

Author:

{'name': 'Jiawei Yang', 'email': 'jiawei.yang@mongodb.com', 'username': 'YoungYang0820'}

Message: SERVER-80408 Only check feature flag at the beginning of resharding cloning
Branch: v7.1
https://github.com/mongodb/mongo/commit/62526599c04d61d03f89c3b9b2beb826b1a90193

Comment by Githook User [ 29/Aug/23 ]

Author:

{'name': 'Jiawei Yang', 'email': 'jiawei.yang@mongodb.com', 'username': 'YoungYang0820'}

Message: SERVER-80408 Only check feature flag at the beginning of resharding cloning
Branch: master
https://github.com/mongodb/mongo/commit/7657e765666459fc08c1a501434fb62da9bdaa2f

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