Skip to content

Commit

Permalink
fix: set retry_on_conflict when updating ES document
Browse files Browse the repository at this point in the history
we are experiencing version_conflict_engine_exception error,
setting the retry_on_conflict parameter to automatically retry when
version conflict
  • Loading branch information
TBonnin committed Aug 26, 2024
1 parent 34e8192 commit b3c6e53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/logs/lib/models/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export async function update(opts: { id: OperationRow['id']; data: SetRequired<P
await client.update({
index: getFullIndexName(indexMessages.index, opts.data.createdAt),
id: opts.id,
retry_on_conflict: 3,
refresh: isTest,
body: {
doc: {
Expand Down

0 comments on commit b3c6e53

Please sign in to comment.