Skip to content

[9.2] Disable _delete_by_query and _update_by_query for CCS/stateful (#140301)#140454

Merged
elasticsearchmachine merged 3 commits intoelastic:9.2from
alexey-ivanov-es:backport/9.2/pr-140301
Jan 9, 2026
Merged

[9.2] Disable _delete_by_query and _update_by_query for CCS/stateful (#140301)#140454
elasticsearchmachine merged 3 commits intoelastic:9.2from
alexey-ivanov-es:backport/9.2/pr-140301

Conversation

@alexey-ivanov-es
Copy link
Copy Markdown
Contributor

Backports the following commits to 9.2:

…ic#140301)

This change prohibits remote index expressions in the Elasticsearch API endpoints delete-by-query and update-by-query.
@alexey-ivanov-es alexey-ivanov-es added :Distributed/Reindex Issues relating to reindex that are not caused by issues further down >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport serverless-linked Added by automation, don't add manually Team:Distributed Indexing (obsolete) Meta label for Distributed Indexing team. Obsolete. Please do not use. labels Jan 9, 2026
… cross-project calls (elastic#137203)

This PR introduces an assertion to make sure that delete-by-query/update-by-query can't have indices options enabling flat-world, and also extracts the method to find cross-project/cross-cluster index expressions from a list of index expressions that is used in ActionFilters to disable cross-project requests in Serverless.

This change doesn't prohibit cross-cluster update-by-query/delete-by-query requests even though these requests were never supposed to work in CCS, since doing so could lead to a breaking change: elastic/dev#3350

ES-12969

(cherry picked from commit de09a89)
@elasticsearchmachine elasticsearchmachine merged commit c11d34e into elastic:9.2 Jan 9, 2026
35 checks passed
@alexey-ivanov-es alexey-ivanov-es deleted the backport/9.2/pr-140301 branch January 9, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Distributed/Reindex Issues relating to reindex that are not caused by issues further down serverless-linked Added by automation, don't add manually Team:Distributed Indexing (obsolete) Meta label for Distributed Indexing team. Obsolete. Please do not use. v9.2.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants