Skip to content

fix(search): proceed on version conflicts in deleteEntityByFields (backport 2.1 #36497) - #38855

Merged
manerow merged 1 commit into
2.1from
fix/delete-by-fields-proceed-on-conflicts-2.1
Nov 26, 2026
Merged

manerow merged 1 commit into
2.1from
fix/delete-by-fields-proceed-on-conflicts-2.1

Conversation

@manerow

@manerow manerow commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Issue

Cherry-pick of #36497

What

deleteEntityByFields in OpenSearchEntityManager and ElasticSearchEntityManager now sets conflicts(Conflicts.Proceed) on its delete-by-query, the same change as #36497 on main.

Why

On 2.1 the delete-by-query uses the engine default, which aborts on the first version conflict. Deleting an entity while a reindex rewrites the same documents returns a 409 and leaves the remaining child documents in the search index. Every other by-query call in these two classes already proceeds on conflicts.

Verification

  • Clean cherry-pick of the merged commit, identical git patch-id --stable.
  • ElasticSearchEntityManagerDeleteByFieldsTest and OpenSearchEntityManagerDeleteByFieldsTest pass on this branch (2 tests, 0 failures).

@manerow
manerow requested a review from a team as a code owner November 26, 2026 12:56
@manerow
manerow requested review from IceS2 and removed request for a team November 26, 2026 12:56
@manerow manerow added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Nov 26, 2026
@manerow
manerow merged commit 9f8cc01 into 2.1 Nov 26, 2026
33 of 34 checks passed
@manerow
manerow deleted the fix/delete-by-fields-proceed-on-conflicts-2.1 branch November 26, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant