Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14318

Investigate changes in SERVER-52770: Add abortReshardCollection command for users to cancel the resharding operation

      Description

      Downstream Change Summary

      abortReshardCollection is a command that will take in a given namespace, and abort the currently-running resharding operation. More details in the ticket description around defining success/failure when running this command.

      Description of Linked Ticket

      Introducing a separate command for users to cancel a resharding operation has advantages over hooking into the existing killOp command, namely customizing the error responses.

      db.adminCommand({abortReshardCollection: "<database>.<collection>"});
      
      • An error will be returned if the resharding operation can no longer be canceled due to the coordinator already having begun to instruct the recipient shards to rename the temporary resharding collection.
      • An error will be returned if there's no resharding operation in progress for the namespace.
      • On success, the abortReshardCollection command will have waited for the coordinator to have forgotten about the resharding operation. It is therefore possible to immediately run a new reshardCollection command after the abortReshardCollection succeeds.
        • The abortReshardCollection command should either require w:majority or automatically imply it.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            naomi.pentrel@mongodb.com Naomi Pentrel (Inactive)
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              2 years, 40 weeks, 6 days ago