Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use retry_on_conflict on update #1316

Closed
zoebraiyan opened this issue Feb 20, 2020 · 5 comments · Fixed by #1461
Closed

how to use retry_on_conflict on update #1316

zoebraiyan opened this issue Feb 20, 2020 · 5 comments · Fixed by #1461

Comments

@zoebraiyan
Copy link

retry_on_conflict cannot be used if version number is passed. How to not pass the version number when calling update method on document.

@hoIIer
Copy link

hoIIer commented Mar 26, 2020

would like to know as well

@hoIIer
Copy link

hoIIer commented Mar 27, 2020

@zoebraiyan I ended up using elasticsearch-py connection.update() directly and retry_on_conflict works properly

@zhangjustin
Copy link

@zoebraiyan I ended up using elasticsearch-py connection.update() directly and retry_on_conflict works properly

can you give more details? i quite don't understand, when i use retry_on_conflict, always get

'action_request_validation_exception', "Validation Failed: 1: can't provide both retry_on_conflict and a specific version;"

@rholloway
Copy link

same issue here. Although retry_on_conflict parameter was added to Document.update() in this library, it seems that version is always passed as well so the problem actually isn't resolved and retry doesn't occur.

@armando1793
Copy link
Contributor

I managed to work around this #1432 by overriding doc.meta["version"] but this seems safe only for my use-case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants