I was testing by Creating two dedicated master node and one data node. So I put down my data node from the Cluster and then tried to create new Index by
curl -X PUT "localhost:9200/customer?pretty"
where customer is the name of my index. The response of this was
"acknowledged" : true,
"shards_acknowledged" : false,
"index" : "customer"
So the shards are unassigned. Even the primary shards are unassigned. And when I do _cat/indices
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size yellow open customer 4te5lNcERcOwNiQjcRxBUA 5 1
The health of the Index is Yellow and the Cluster state is even yellow.
Why is that unexpected behavior since primary shards are even unassigned . (_cat/shards response)
customer 3 p UNASSIGNED
customer 3 r UNASSIGNED
customer 4 p UNASSIGNED
customer 4 r UNASSIGNED
customer 2 p UNASSIGNED
customer 2 r UNASSIGNED
customer 1 p UNASSIGNED
customer 1 r UNASSIGNED
customer 0 p UNASSIGNED
customer 0 r UNASSIGNED
Why is this unusual behavior since primary are unassigned but still Cluster State is Yellow?