org.elasticsearch.ElasticsearchStatusException: Unable to parse response body at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:2033) at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1777) at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1734) at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1696) at org.elasticsearch.client.RestHighLevelClient.deleteByQuery(RestHighLevelClient.java:585) at cn.ce.omo.promotion.consumer.service.impl.PromotionSyncSerivceImpl.lambda$sync$0(PromotionSyncSerivceImpl.java:143) at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1556) at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580) at cn.ce.omo.promotion.consumer.service.impl.PromotionSyncSerivceImpl.sync(PromotionSyncSerivceImpl.java:121) at cn.ce.omo.promotion.consumer.sync.PromotionSyncConsumer.onMessage(PromotionSyncConsumer.java:65) at cn.ce.omo.promotion.consumer.sync.PromotionSyncConsumer.onMessage(PromotionSyncConsumer.java:30) at org.apache.rocketmq.spring.support.DefaultRocketMQListenerContainer$DefaultMessageListenerConcurrently.consumeMessage(DefaultRocketMQListenerContainer.java:330) at org.apache.rocketmq.client.impl.consumer.ConsumeMessageConcurrentlyService$ConsumeRequest.run(ConsumeMessageConcurrentlyService.java:411) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Suppressed: org.elasticsearch.common.ParsingException: Failed to parse object: expecting field with name [error] but found [took] at org.elasticsearch.common.xcontent.XContentParserUtils.ensureFieldName(XContentParserUtils.java:50) at org.elasticsearch.ElasticsearchException.failureFromXContent(ElasticsearchException.java:605) at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:169) at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:2053) at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:2030) ... 17 common frames omitted Caused by: org.elasticsearch.client.ResponseException: method [POST], host [http://ip:port], URI [/indexName/_doc/_delete_by_query?requests_per_second=-1&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&timeout=1m], status line [HTTP/1.1 409 Conflict] {"took":28,"timed_out":false,"total":1,"deleted":0,"batches":1,"version_conflicts":1,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1.0,"throttled_until_millis":0,"failures":[{"index":"promotion","type":"_doc","id":"1513878196196659287-1476148670121377838","cause":{"type":"version_conflict_engine_exception","reason":"[_doc][1513878196196659287-1476148670121377838]: version conflict, required seqNo [2524949], primary term [4]. current document has seqNo [2524950] and primary term [4]","index_uuid":"Lvf_rUoPTKaTdI-38t6TFw","shard":"2","index":"promotion"},"status":409}]} at org.elasticsearch.client.RestClient$1.completed(RestClient.java:552) at org.elasticsearch.client.RestClient$1.completed(RestClient.java:537) at org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:122) at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseCompleted(DefaultClientExchangeHandlerImpl.java:181) at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse(HttpAsyncRequestExecutor.java:448) at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:338) at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265) at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81) at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39) at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114) at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337) at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315) at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276) at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591) ... 1 common frames omitted
Failed to parse object: expecting field with name [error] but found [took]