# UpdateRequest with retryOnConflict using BulkProcessor failed

**URL:** <https://discuss.elastic.co/t/updaterequest-with-retryonconflict-using-bulkprocessor-failed/138273>\
**Category:** Elasticsearch\
**Created:** [July 2, 2018, 8:40pm UTC](https://discuss.elastic.co/t/updaterequest-with-retryonconflict-using-bulkprocessor-failed/138273 "2018-07-02T20:40:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yelin](https://avatars.discourse-cdn.com/v4/letter/y/e274bd/32.png) [@yelin](https://discuss.elastic.co/u/yelin)\
**Post date:** [July 2, 2018, 8:40pm UTC](https://discuss.elastic.co/t/updaterequest-with-retryonconflict-using-bulkprocessor-failed/138273/1 "2018-07-02T20:40:45Z")

</div>

I am using the Java High Level REST Client, and my UpdateRequest was working fine using the BulkProcessor originally. However, once I add something like "request.retryOnConflict(3);" to my UpdateRequest, and use the same BulkProcessor, I got the following error. Any suggestions?

org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=illegal\_argument\_exception, reason=Action/metadata line [1] contains an unknown parameter [retry\_on\_conflict]]  
at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestR  
esponse.java:177) ~[elasticsearch-6.3.0.jar!/:6.3.0]  
at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLeve  
lClient.java:653) ~[elasticsearch-rest-high-level-client-6.3.0.jar!/:6.3.0]  
at org.elasticsearch.client.RestHighLevelClient.parseResponseException(R  
estHighLevelClient.java:628) ~[elasticsearch-rest-high-level-client-6.3.0.jar!/:  
6.3.0]  
at org.elasticsearch.client.RestHighLevelClient$1.onFailure(RestHighLeve  
lClient.java:603) [elasticsearch-rest-high-level-client-6.3.0.jar!/:6.3.0]  
at org.elasticsearch.client.RestClient$FailureTrackingResponseListener.o  
nDefinitiveFailure(RestClient.java:629) [elasticsearch-rest-client-6.3.0.jar!/:6  
.3.0]  
at org.elasticsearch.client.RestClient$1.completed(RestClient.java:385)  
[elasticsearch-rest-client-6.3.0.jar!/:6.3.0]  
at org.elasticsearch.client.RestClient$1.completed(RestClient.java:366)  
[elasticsearch-rest-client-6.3.0.jar!/:6.3.0]  
at org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:119  
) [httpcore-4.4.5.jar!/:4.4.5]  
at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.resp  
onseCompleted(DefaultClientExchangeHandlerImpl.java:177) [httpasyncclient-4.1.2.  
jar!/:4.1.2]  
at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse  
(HttpAsyncRequestExecutor.java:436) [httpcore-nio-4.4.5.jar!/:4.4.5]  
at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(Http  
AsyncRequestExecutor.java:326) [httpcore-nio-4.4.5.jar!/:4.4.5]  
at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(De  
faultNHttpClientConnection.java:265) [httpcore-nio-4.4.5.jar!/:4.4.5]  
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(Inter  
nalIODispatch.java:81) [httpasyncclient-4.1.2.jar!/:4.1.2]  
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(Inter  
nalIODispatch.java:39) [httpasyncclient-4.1.2.jar!/:4.1.2]  
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(Abstra  
ctIODispatch.java:114) [httpcore-nio-4.4.5.jar!/:4.4.5]  
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor  
.java:162) [httpcore-nio-4.4.5.jar!/:4.4.5]  
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(Abstr  
actIOReactor.java:337) [httpcore-nio-4.4.5.jar!/:4.4.5]  
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(Abst  
ractIOReactor.java:315) [httpcore-nio-4.4.5.jar!/:4.4.5]  
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIO  
Reactor.java:276) [httpcore-nio-4.4.5.jar!/:4.4.5]  
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.  
java:104) [httpcore-nio-4.4.5.jar!/:4.4.5]  
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.  
run(AbstractMultiworkerIOReactor.java:588) [httpcore-nio-4.4.5.jar!/:4.4.5]  
at java.lang.Thread.run(Thread.java:745) [na:1.8.0\_92]  
Suppressed: org.elasticsearch.client.ResponseException: method [POST], h  
ost [[http://localhost:9200](http://localhost:9200)], URI [/\_bulk?timeout=1m], status line [HTTP/1.1 400  
Bad Request]  
{"error":{"root\_cause":[{"type":"illegal\_argument\_exception","reason":"Action/me  
tadata line [1] contains an unknown parameter [retry\_on\_conflict]"}],"type":"ill  
egal\_argument\_exception","reason":"Action/metadata line [1] contains an unknown  
parameter [retry\_on\_conflict]"},"status":400}  
at org.elasticsearch.client.RestClient$1.completed(RestClient.ja  
va:377) [elasticsearch-rest-client-6.3.0.jar!/:6.3.0]  
... 16 common frames omitted

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 30, 2018, 8:40pm UTC](https://discuss.elastic.co/t/updaterequest-with-retryonconflict-using-bulkprocessor-failed/138273/2 "2018-07-30T20:40:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
