From 8731a25b344809ff9efd72dddb5c5ddabb895afe Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 15 Apr 2025 08:39:59 +0100 Subject: [PATCH 1/2] [API] Updates source code docs --- .../elasticsearch/api/actions/indices/cancel_migrate_reindex.rb | 2 +- .../lib/elasticsearch/api/actions/indices/create_from.rb | 2 +- .../lib/elasticsearch/api/actions/indices/migrate_reindex.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb index 9ad145d5ee..34c327d8cc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String, Array] :index The index or data stream name (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-migration + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-cancel-migrate-reindex # def cancel_migrate_reindex(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.cancel_migrate_reindex' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb index 7af237154a..b0ef74f4c8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body create_from # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-migration + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-create-from # def create_from(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.create_from' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb index 4ecfca3ad6..aad800d2dc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body reindex # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-migration + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-migrate-reindex # def migrate_reindex(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.migrate_reindex' } diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 18bfc42146..71e0a5c93b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.0'.freeze - ES_SPECIFICATION_COMMIT = 'c02d8eb89a4efb3e719bd783715e2bf312479af8'.freeze + ES_SPECIFICATION_COMMIT = '52c473efb1fb5320a5bac12572d0b285882862fb'.freeze end end From 8f306556eb0ec9be111b915122a839fcb951efd9 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 15 Apr 2025 09:06:28 +0100 Subject: [PATCH 2/2] [Tests] YAML - Retry on 400 for Serverless trained model allocation --- elasticsearch-api/spec/yaml-test-runner/run.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch-api/spec/yaml-test-runner/run.rb b/elasticsearch-api/spec/yaml-test-runner/run.rb index 701d26b801..e55f448b6a 100644 --- a/elasticsearch-api/spec/yaml-test-runner/run.rb +++ b/elasticsearch-api/spec/yaml-test-runner/run.rb @@ -62,7 +62,7 @@ def serverless? if serverless? options.merge!( { - retry_on_status: [409], + retry_on_status: [409, 400], retry_on_failure: 10, delay_on_retry: 60_000, request_timeout: 120