Hi All,
I'm getting version_conflict_engine_exception when doing an update by query in an index with one shard and no replicas.
I do not understand well why is this situation happening.
Is there any place in the doc where it is explained the conditions under this exception is raised?
The update by query I'm doing is:
POST audit-trail-2021.05.07-000001/_update_by_query
{
"query": {
"range": {
"@timestamp": {
"lte": "now-1h"
}
}
},
"script": {
"source": """ctx._source.source = [ "ip": ctx._source.ip ]""",
"lang": "painless"
}
}
and the error
{
"index" : "audit-trail-2021.05.07-000001",
"type" : "_doc",
"id" : "agzwWHkBtct8ebcgWHR6",
"cause" : {
"type" : "version_conflict_engine_exception",
"reason" : "[agzwWHkBtct8ebcgWHR6]: version conflict, required seqNo [13740177], primary term [1]. current document has seqNo [19475784] and primary term [1]",
"index_uuid" : "1wZ7iI_CS760nKU2sKgVEA",
"shard" : "0",
"index" : "audit-trail-2021.05.07-000001"
},
"status" : 409
}
If I run the update by query with ?conflicts=proceed
it executes well, but I want to understand the nature of the error
Thank you very much in advance
Regards
Ana