hi,
I met a very strange issue. My cluster (ES 1.7.1) always enters red status if I create a new index with only one doc.
Repro steps:
-
get current health:
http://localhost:9200/_cat/health1458814224 10:10:24 my-es-cluster green 12 6 36 36 0 0 0 0
It is green.
-
create a new index by posting a doc:
http://localhost:9200/testindex/doc/1
{
"id": "1"
}then got following response:
"error": "UnavailableShardsException[[testindex][2] Primary shard is not active or isn't assigned to a known node. Timeout: [1m], request: delete {[testindex][doc][1]}]"
Also, the cluster health becomes "red"
I checked the ES log file, only found following error message:
[2016-03-24 10:04:40,866][DEBUG][action.index ] [data-node-vm5] observer: timeout notification from cluster service. timeout setting [1m], time since start [1m]
How to troubleshoot the root cause?