[SERVER-45235] Call onStartIndexBuildSinglePhase in IndexBuildsCoordinator::createIndexesOnEmptyCollection Created: 18/Dec/19  Updated: 21/Jan/20  Resolved: 21/Jan/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Mihai Andrei
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Sharding 2020-01-13, Sharding 2020-01-27
Participants:

 Description   

To make createIndexes in v4.4 FCV4.2 abort concurrent outgoing migrations when run on empty collections, we need to call onStartIndexBuildSinglePhase here



 Comments   
Comment by Mihai Andrei [ 21/Jan/20 ]

We will not be doing this ticket as this scenario can't be encountered. Basically, IndexBuildsCoordinator::createIndexesOnEmptyCollection only gets called when the namespace is nonexistent or when renaming a collection. In order to abort a migration, a collection must be sharded and have chunks to migrate. Because the shardCollection command will always create the collection when setting up a sharded collection and renaming a collection is not allowed for sharded collections, it's impossible for us to hit this code path in the context of a sharded collection.

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