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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-rc0
    • Component/s: manual, Server
    • Labels:
      None

      Description

      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.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              naomi.pentrel Naomi Pentrel
              Reporter:
              backlog-server-pm Backlog - Core Eng Program Management Team
              Participants:
              Last commenter:
              Naomi Pentrel Naomi Pentrel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Days since reply:
                10 weeks, 5 days ago