Skip to content

Disable _delete_by_query and _update_by_query for CCS/stateful#140301

Merged
alexey-ivanov-es merged 5 commits intoelastic:mainfrom
alexey-ivanov-es:ES-13480
Jan 9, 2026
Merged

Disable _delete_by_query and _update_by_query for CCS/stateful#140301
alexey-ivanov-es merged 5 commits intoelastic:mainfrom
alexey-ivanov-es:ES-13480

Conversation

@alexey-ivanov-es
Copy link
Copy Markdown
Contributor

This change prohibits remote index expressions in the Elasticsearch API endpoints delete-by-query and update-by-query.

Approved breaking change proposal: https://github.com/elastic/dev/issues/3350

@alexey-ivanov-es alexey-ivanov-es added >bug :Distributed/Reindex Issues relating to reindex that are not caused by issues further down auto-backport Automatically create backport pull requests when merged branch:9.2 branch:9.1 branch:8.19 branch:9.3 labels Jan 7, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing)

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @alexey-ivanov-es, I've created a changelog YAML for you.

@alexey-ivanov-es alexey-ivanov-es marked this pull request as draft January 7, 2026 19:33
@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Jan 7, 2026
@alexey-ivanov-es alexey-ivanov-es marked this pull request as ready for review January 7, 2026 19:49
Copy link
Copy Markdown
Contributor

@quux00 quux00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexey-ivanov-es alexey-ivanov-es merged commit 781d409 into elastic:main Jan 9, 2026
35 checks passed
alexey-ivanov-es added a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Jan 9, 2026
…ic#140301)

This change prohibits remote index expressions in the Elasticsearch API endpoints delete-by-query and update-by-query.
alexey-ivanov-es added a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Jan 9, 2026
…ic#140301)

This change prohibits remote index expressions in the Elasticsearch API endpoints delete-by-query and update-by-query.
alexey-ivanov-es added a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Jan 9, 2026
…ic#140301)

This change prohibits remote index expressions in the Elasticsearch API endpoints delete-by-query and update-by-query.
alexey-ivanov-es added a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Jan 9, 2026
…ic#140301)

This change prohibits remote index expressions in the Elasticsearch API endpoints delete-by-query and update-by-query.
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💚 Backport successful

Status Branch Result
9.3
9.1
8.19
9.2

elasticsearchmachine pushed a commit that referenced this pull request Jan 9, 2026
…) (#140451)

This change prohibits remote index expressions in the Elasticsearch API endpoints delete-by-query and update-by-query.
elasticsearchmachine pushed a commit that referenced this pull request Jan 9, 2026
…140301) (#140454)

* Disable _delete_by_query and _update_by_query for CCS/stateful (#140301)

This change prohibits remote index expressions in the Elasticsearch API endpoints delete-by-query and update-by-query.

* Prohibit _reindex, _delete_by_query and _update_by_query from issuing cross-project calls (#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)

* Remove usage of method that doesn't exist in 9.2
@alexey-ivanov-es alexey-ivanov-es deleted the ES-13480 branch January 9, 2026 15:10
elasticsearchmachine pushed a commit that referenced this pull request Jan 9, 2026
…#140301) (#140453)

* Disable _delete_by_query and _update_by_query for CCS/stateful (#140301)

This change prohibits remote index expressions in the Elasticsearch API endpoints delete-by-query and update-by-query.

* Prohibit _reindex, _delete_by_query and _update_by_query from issuing cross-project calls (#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)

* Remove usage of method that doesn't exist in 8.19
szybia added a commit to szybia/elasticsearch that referenced this pull request Jan 9, 2026
* upstream/main: (76 commits)
  [Inference API] Get _services skips EIS authorization call if CCM is not configured (elastic#139964)
  Improve TSDB codec benchmarks with full encoder and compression metrics (elastic#140299)
  ESQL: Consolidate test `BlockLoaderContext`s (elastic#140403)
  ESQL: Improve Lookup Join performance with CachedDirectoryReader (elastic#139314)
  ES|QL: Add more examples for the match operator (elastic#139815)
  ESQL: Add timezone to add and sub operators, and ConfigurationAware planning support (elastic#140101)
  ESQL: Updated ToIp tests and generated documentation for map parameters (elastic#139994)
  Disable _delete_by_query and _update_by_query for CCS/stateful (elastic#140301)
  Remove unused method ElasticInferenceService.translateToChunkedResults (elastic#140442)
  logging hot threads on large queue of the management threadpool (elastic#140251)
  Search functions docs cleanup (elastic#140435)
  Unmute 350_point_in_time/point-in-time with index filter (elastic#140443)
  Remove unused methods (elastic#140222)
  Add CPS and `project_routing` support for `_mvt` (elastic#140053)
  Streamline `ShardDeleteResults` collection (elastic#140363)
  Fix Docker build to use --load for single-platform images (elastic#140402)
  Parametrize + test VectorScorerOSQBenchmark (elastic#140354)
  `RecyclerBytesStreamOutput` using absolute offsets (elastic#140303)
  Define bulk float native methods for vector scoring (elastic#139885)
  Make `TimeSeriesAggregate` `TimestampAware` (elastic#140270)
  ...
jimczi pushed a commit to jimczi/elasticsearch that referenced this pull request Jan 12, 2026
…ic#140301)

This change prohibits remote index expressions in the Elasticsearch API endpoints delete-by-query and update-by-query.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >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. v8.19.11 v9.1.11 v9.2.5 v9.3.1 v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants