Skip to content

Commit b99fa9c

Browse files
author
armando
committed
Do not pass the document's current version to elasticsearch.update when retry_on_conflict is not None
1 parent f856f5d commit b99fa9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elasticsearch_dsl/document.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ def update(
401401

402402
if retry_on_conflict is not None:
403403
doc_meta["retry_on_conflict"] = retry_on_conflict
404+
doc_meta["version"] = None
404405

405406
# Optimistic concurrency control
406407
if "seq_no" in self.meta and "primary_term" in self.meta:

0 commit comments

Comments
 (0)