[SERVER-67557] Implement cleanupGlobalIndex command Created: 27/Jun/22  Updated: 17/Nov/23

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

Type: New Feature Priority: Major - P3
Reporter: Randolph Tan Assignee: Backlog - Cluster Scalability
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Cluster Scalability
Participants:

 Description   

This command is responsible for dropping the local skip global index cloning collection and also cleaning up the global index primary only service. It has the format:

{
  cleanupGlobalIndex: <collName>
  collectionUuid: <collUUID>,
  indexName: <name given during createIndex>
}

If the cloner is not yet in the readyToCommit phase, this command will force it to abort and perform the cleanup logic (This should already be handled by GlobalIndexCloningService::CloningStateMachine::cleanup). Then it waits for the cleanup to finish by waiting for the future from GlobalIndexCloningService::CloningStateMachine::getCompletionFuture. This command should also assert that it is run with w: majority.


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