Use logstash to reindex in the same cluster, but reponse code 503


(lizhen) #1

I use logstash to reindex in the same cluster, but when it ran more that 24 hours, a error occurred in the logstash with "retrying failed action with response code: 503 {:level=>:warn}". I use es2.1 and logstash2.1.


(Magnus B├Ąck) #2

I suspect the ES log contains additional clues. Perhaps you don't have sufficient cluster capacity to reindex all the data?


(lizhen) #3

this is the log.
[2016-03-20 23:59:56,746][DEBUG][action.admin.indices.stats] [bigdata10] [indices:monitor/stats] failed to execute operation for shard [[armin2015_0507][0], node[Ky-5cgAVSoGiMlEfso235w], [P], v[5], s[INITIALIZING], a[id=3-z6d-jQS1KS03n7GB097A], unassigned_info[[reason=NODE_LEFT], at[2016-03-19T23:49:28.145Z], details[node_left[Ky-5cgAVSoGiMlEfso235w]]]]
[armin2015_0507][[armin2015_0507][0]] 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.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:299)
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: [armin2015_0507][[armin2015_0507][0]] 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.(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


(system) #4