I saw a lot of that error on my Elasticsearch logs:
[2015-12-01 17:27:03,663][DEBUG][action.admin.indices.stats] [crawler_service_001] [indices:monitor/stats] failed to execute operation for shard [[carrier-2015.12.01][2], node[rCqrCf10SGuAVqW_YYiDng], [P], v[7], s[INITIALIZING], a[id=qHbJSlmPRhCLRc7lrpO_Nw], unassigned_info[[reason=ALLOCATION_FAILED], at[2015-12-01T09:25:09.830Z], details[engine failure, reason [refresh failed], failure NullPointerException[null]]]]
[carrier-2015.12.01][[carrier-2015.12.01][2]] BroadcastShardOperationFailedException[operation indices:monitor/stats failed]; nested: IllegalIndexShardStateException[CurrentState[RECOVERING] operations only allowed when shard state is one of [POST_RECOVERY, STARTED, RELOCATED]];
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$BroadcastByNodeTransportRequestHandler.onShardOperation(TransportBroadcastByNodeAction.java:405)
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$BroadcastByNodeTransportRequestHandler.messageReceived(TransportBroadcastByNodeAction.java:382)
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$BroadcastByNodeTransportRequestHandler.messageReceived(TransportBroadcastByNodeAction.java:371)
at org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:350)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: [carrier-2015.12.01][[carrier-2015.12.01][2]] IllegalIndexShardStateException[CurrentState[RECOVERING] operations only allowed when shard state is one of [POST_RECOVERY, STARTED, RELOCATED]]
at org.elasticsearch.index.shard.IndexShard.readAllowed(IndexShard.java:974)
at org.elasticsearch.index.shard.IndexShard.acquireSearcher(IndexShard.java:808)
at org.elasticsearch.index.shard.IndexShard.docStats(IndexShard.java:628)
at org.elasticsearch.action.admin.indices.stats.CommonStats.<init>(CommonStats.java:131)
at org.elasticsearch.action.admin.indices.stats.TransportIndicesStatsAction.shardOperation(TransportIndicesStatsAction.java:165)
at org.elasticsearch.action.admin.indices.stats.TransportIndicesStatsAction.shardOperation(TransportIndicesStatsAction.java:47)
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$BroadcastByNodeTransportRequestHandler.onShardOperation(TransportBroadcastByNodeAction.java:401)
... 7 more
Then I curl -XGET http://localhost:9200/_cat/shards | grep carrier
:
carrier-2015.12.01 4 p STARTED 215337 120.8mb 127.0.0.1 crawler_service_001
carrier-2015.12.01 4 r UNASSIGNED
carrier-2015.12.01 2 p INITIALIZING 127.0.0.1 crawler_service_001
carrier-2015.12.01 2 r UNASSIGNED
carrier-2015.12.01 1 p STARTED 215626 120.8mb 127.0.0.1 crawler_service_001
carrier-2015.12.01 1 r UNASSIGNED
carrier-2015.12.01 3 p STARTED 212904 97.1mb 127.0.0.1 crawler_service_001
carrier-2015.12.01 3 r UNASSIGNED
carrier-2015.12.01 0 p STARTED 214469 120.8mb 127.0.0.1 crawler_service_001
carrier-2015.12.01 0 r UNASSIGNED
So, what should I do now?