Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-67557

Implement cleanupGlobalIndex command

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Cluster Scalability

      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.

            Assignee:
            backlog-server-cluster-scalability [DO NOT USE] Backlog - Cluster Scalability
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: