It is code when I restart my ES
[2018-03-19T18:14:41,531][INFO ][o.e.g.GatewayService ] [mX5UKVk] recovered [44] indices into cluster_state
[2018-03-19T18:14:42,367][DEBUG][o.e.a.s.TransportSearchAction] [mX5UKVk] All shards failed for phase: [query]
[2018-03-19T18:14:42,368][DEBUG][o.e.a.s.TransportSearchAction] [mX5UKVk] All shards failed for phase: [query]
[2018-03-19T18:14:42,368][DEBUG][o.e.a.s.TransportSearchAction] [mX5UKVk] All shards failed for phase: [query]
[2018-03-19T18:14:42,368][DEBUG][o.e.a.s.TransportSearchAction] [mX5UKVk] All shards failed for phase: [query]
[2018-03-19T18:14:42,368][DEBUG][o.e.a.s.TransportSearchAction] [mX5UKVk] All shards failed for phase: [query]
[2018-03-19T18:14:42,368][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [mX5UKVk] failed to execute [search] input for watch [Tq-xHNY_S0qxyMtskMHGiA_elasticsearch_cluster_status], reason [all shards failed]
[2018-03-19T18:14:42,368][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [mX5UKVk] failed to execute [search] input for watch [Tq-xHNY_S0qxyMtskMHGiA_elasticsearch_nodes], reason [all shards failed]
[2018-03-19T18:14:42,369][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [mX5UKVk] failed to execute [search] input for watch [Tq-xHNY_S0qxyMtskMHGiA_elasticsearch_version_mismatch], reason [all shards failed]
[2018-03-19T18:14:42,368][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [mX5UKVk] failed to execute [search] input for watch [Tq-xHNY_S0qxyMtskMHGiA_xpack_license_expiration], reason [all shards failed]
[2018-03-19T18:14:42,368][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [mX5UKVk] failed to execute [search] input for watch [Tq-xHNY_S0qxyMtskMHGiA_logstash_version_mismatch], reason [all shards failed]
[2018-03-19T18:14:42,429][WARN ][o.e.x.w.e.ExecutionService] [mX5UKVk] failed to execute watch [Tq-xHNY_S0qxyMtskMHGiA_elasticsearch_version_mismatch]
[2018-03-19T18:14:42,429][WARN ][o.e.x.w.e.ExecutionService] [mX5UKVk] failed to execute watch [Tq-xHNY_S0qxyMtskMHGiA_elasticsearch_cluster_status]
[2018-03-19T18:14:42,430][WARN ][o.e.x.w.e.ExecutionService] [mX5UKVk] failed to execute watch [Tq-xHNY_S0qxyMtskMHGiA_logstash_version_mismatch]
[2018-03-19T18:14:42,432][DEBUG][o.e.a.s.TransportSearchAction] [mX5UKVk] All shards failed for phase: [query]
[2018-03-19T18:14:42,433][ERROR][o.e.x.w.i.s.ExecutableSearchInput] [mX5UKVk] failed to execute [search] input for watch [Tq-xHNY_S0qxyMtskMHGiA_kibana_version_mismatch], reason [all shards failed]
[2018-03-19T18:14:42,444][WARN ][o.e.x.w.e.ExecutionService] [mX5UKVk] failed to execute watch [Tq-xHNY_S0qxyMtskMHGiA_kibana_version_mismatch]
[2018-03-19T18:14:43,360][INFO ][o.e.c.r.a.AllocationService] [mX5UKVk] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.monitoring-es-6-2018.02.20][0], [.kibana][0], [.watcher-history-7-2018.02.20][0]] ...]).
Honestly, I used to be hesitated before upgrading. Cuz I knew there would be a bunch of issues like this:(
For now, the health status is
{
"cluster_name": "elasticsearch",
"status": "yellow",
"timed_out": false,
"number_of_nodes": 1,
"number_of_data_nodes": 1,
"active_primary_shards": 52,
"active_shards": 52,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 10,
"delayed_unassigned_shards": 0,
"number_of_pending_tasks": 0,
"number_of_in_flight_fetch": 0,
"task_max_waiting_in_queue_millis": 0,
"active_shards_percent_as_number": 83.87096774193549
}