Elasticsearch php update conflict


(Tushar Chevulkar) #1

I am trying to update a document with PHP client but its giving me an error [status code] 409
[reason phrase] Conflict I was using the same code for the early versions of elasticsearch and worked perfectly . Can any one tell me how to i handle this.


(Lee Hinman) #2

That error means that the document has changed underneath you. This means you
have two different processes/threads reading and writing the same document at
the same time.

You should be able to write something on the client side to retry the operation,
or if you are using the /_update API, there is a retry_on_conflict setting
you can set to an integer value for the number of times ES should retry the
operation if a conflict occurs.


(system) #3

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