Hello, first post, still learning.
Having an issue closing "random" indices, after removing replica shards and using shard allocation awareness. ES 6.8.3, although indices may have been created in ES 5 (I know).
- Remove Replicas (set 0)
- Add "require" to index for shard allocation awareness.
- Let ES move the index to the node, attempt to close in the index.
Using POST //_close
Getting this error message in debug:
"verification of shards before closing {} failed [{}]"
There is literally no further information in the log.
From what I am able to see, after removing the replica shards (setting replicas to 0), allocating the shards to a different node using allocation awareness, "random" indices won't close.
I am unable to find any other topics related to this anywhere.
If I run:
/_cluster/state/metadata,routing_table/
I can see that the removed replicas are still referenced in the index metadata under "in_sync_allocations", but not in the routing table.
I can "resolve" the issue by moving the index back to the original node, adding replicas back, closing the index (it will close after adding replicas back and moving back), removing the replicas, setting require, opening the index so it can be assigned/moved to the required node, once moved, the index will now close.
If I look at the cluster state for the index, the replica shards are no longer referenced in the metadata for the index.
Is this an order of operations, or doing operations too fast? I'm not clear why removing the replicas a second time, finally removes the replicas from the "in_sync_allocations". Once this done, indices will close/open as desired on any assigned node.
Any input appreciated!