Force recover partitions

POST /v1/partitions/force_recover_from_nodes

Force recover partitions from input list of nodes (brokers).

application/json

Body Required

Brokers that are permanently lost, and the partitions to recover from them.

  • dead_nodes array[integer(int32)] Required

    IDs of the brokers that are permanently lost.

  • partitions_to_force_recover array[object] Required

    Partitions to recover. Pass the entries that GET /v1/partitions/majority_lost returns for the same dead brokers.

    Hide partitions_to_force_recover attributes Show partitions_to_force_recover attributes object

    NTP instance with a lost majority due to dead nodes (brokers)

    • ntp object

      NTP

      Hide ntp attributes Show ntp attributes object
      • ns string

        Namespace

      • topic string

        Topic

      • partition integer

        Partition ID

    • topic_revision integer(int64)

      Revision of topic that this NTP is part of

    • replicas array[object]

      Replica assignments

      Hide replicas attributes Show replicas attributes object

      Replica assignment

      • core integer(int64)

        core

      • node_id integer(int64)

        node id

    • dead_nodes array[integer(int32)]

      List of dead nodes (brokers) that contribute to majority loss of partitions

Responses

  • 200

    OK

POST /v1/partitions/force_recover_from_nodes
curl \
 --request POST 'http://localhost:9644/v1/partitions/force_recover_from_nodes' \
 --header "Content-Type: application/json" \
 --data '{
  "dead_nodes": [
    42
  ],
  "partitions_to_force_recover": [
    {
      "ntp": {
        "ns": "string",
        "topic": "string",
        "partition": 42
      },
      "topic_revision": 42,
      "replicas": [
        {
          "core": 42,
          "node_id": 42
        }
      ],
      "dead_nodes": [
        42
      ]
    }
  ]
}'
Request examples
{
  "dead_nodes": [
    42
  ],
  "partitions_to_force_recover": [
    {
      "ntp": {
        "ns": "string",
        "topic": "string",
        "partition": 42
      },
      "topic_revision": 42,
      "replicas": [
        {
          "core": 42,
          "node_id": 42
        }
      ],
      "dead_nodes": [
        42
      ]
    }
  ]
}