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
deleteDocuments results in: Validation Failed #2046
Comments
We likely need a patch for this, can't think of an easy workaround. @dsgrillo Could you chime in here as you provided the initial change? Two paths forward I have in mind:
Second approach seems preferrable as it is in the control of deleteDocuments to send correct requests. But it means touching each document. |
The optimistic concurrency control changed between on ES6.7, where they've deprecated the I think the second approach of "wiping the version info" is somehow better, as for what I've understood, it's already somewhat implemented (via whitelisting the attributes) - take a look at I wouldn't blindly remove the |
We are using ES 7.15
Since we updated from Elastica v7.1.1 to v7.1.3 we are experiencing issues when trying to delete via
\Elastica\Client::deleteDocuments
.The Documents we provide are gotten fresh from the index via
\Elastica\Index::getDocument
Due to the changes in: #1973 the document now contains version Information, which was previously not included.
When deleting the documents via bulk:
Request included previously:
{"delete":{"_id":"66418906","_index":"$MY_INDEX"}}
Now includes:
{"delete":{"_id":"66418906","_index":"$MY_INDEX","version":1}}
This results in:
Validation Failed: 1: internal versioning can not be used for optimistic concurrency control. Please use `if_seq_no` and `if_primary_term` instead;
I am deleting the version from the document as a workaround now - but maybe you can come up with a fix or help me out on how to fix my issue.
The text was updated successfully, but these errors were encountered: