Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpk: command(s) for cancelling partition movement #5781

Closed
ztlpn opened this issue Aug 1, 2022 · 1 comment · Fixed by #5925
Closed

rpk: command(s) for cancelling partition movement #5781

ztlpn opened this issue Aug 1, 2022 · 1 comment · Fixed by #5925
Assignees
Labels
area/rpk kind/enhance New feature or request

Comments

@ztlpn
Copy link
Contributor

ztlpn commented Aug 1, 2022

EITHER rpk cluster partitions move --cancel OR rpk cluster partitions movement-cancel.

Scenario 1: cancel all partition movements in the cluster

Corresponding admin API endpoint: POST /v1/cluster/cancel_reconfigurations.

Query parameters: none

Response: a list of partition_result objects.

Response example:

[
  {
    "ns": "kafka",
    "topic": "foo",
    "partition": 1,
    "result": "cluster::errc:0"
  },
  {
    "ns": "kafka",
    "topic": "foo",
    "partition": 4,
    "result": "cluster::errc:0"
  }
]

In case of error a standard admin API response is returned, example:

{
  "message": "Unexpected error: rpc::errc::exponential_backoff",
  "code": 500
}

Scenario 2: cancel all partition movements on a node

Corresponding admin API endpoint: POST /v1/brokers/{id}/cancel_partition_moves.

Query parameters:

  • id - node id.

Response: the same as in scenario 1.

Scenario 3 (low priority): cancel a single partition movement

Corresponding admin API endpoints

Query parameters:

  • namespace
  • topic
  • partition

Response: empty if successful, otherwise standard admin API error response.

Note: force-abort versions of scenario 1 and scenario 2 need to be implemented too, but redpanda support is not ready yet (tracking in #5782)

@ztlpn ztlpn added area/rpk kind/enhance New feature or request labels Aug 1, 2022
@ztlpn
Copy link
Contributor Author

ztlpn commented Aug 1, 2022

cc @mmaslankaprv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rpk kind/enhance New feature or request
Projects
None yet
2 participants