Delete unassigned DANGLING_INDEX_IMPORTED shards

I have unassigned shards in my cluster,

execute:

GET /_cluster/allocation/explain

result:

{
  "index": "error-log-2018-05-05",
  "shard": 3,
  "primary": true,
  "current_state": "unassigned",
  "unassigned_info": {
    "reason": "DANGLING_INDEX_IMPORTED",
    "at": "2018-08-30T10:11:44.011Z",
    "last_allocation_status": "no_valid_shard_copy"
  },
  "can_allocate": "no_valid_shard_copy",
  "allocate_explanation": "cannot allocate because a previous copy of the primary shard existed but can no longer be found on the nodes in the cluster",
  "node_allocation_decisions": [
    {
      "node_id": "-Kebh1FtQVmAs8DDkrP8Kw",
      "node_name": "node-17",
      "transport_address": "172.31.1.17:9300",
      "node_attributes": {
        "xpack.installed": "true"
      },
      "node_decision": "no",
      "store": {
        "found": false
      }
    }
    ...
  ]
}

How to delete the unassigned shards? I already delete the shards long ago.

@Christian_Dahlqvist please have a look. Thanks!

Solved at Endless creating index after delete another index

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.