Skip to content

[Transform] Upgrade Mode #5165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 97 additions & 6 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions specification/_doc_ids/table.csv
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ terminate-processor,https://www.elastic.co/docs/reference/enrich-processor/termi
test-grok-pattern,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-text-structure-test-grok-pattern,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/test-grok-pattern.html,
time-value,https://github.com/elastic/elasticsearch/blob/current/libs/core/src/main/java/org/elasticsearch/core/TimeValue.java,,
time-zone-id,https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html,,
transform-set-upgrade-mode,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-set-upgrade-mode,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/transform-set-upgrade-mode.html,
trim-processor,https://www.elastic.co/docs/reference/enrich-processor/trim-processor,,
update-by-query,https://www.elastic.co/docs/reference/elasticsearch/rest-apis/update-by-query-api,,
update-dfanalytics,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-data-frame-analytics,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/update-dfanalytics.html,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { RequestBase } from '@_types/Base'
import { Duration } from '@_types/Time'

/**
* Set upgrade_mode for transform indices.
* Sets a cluster wide upgrade_mode setting that prepares transform
* indices for an upgrade.
* When upgrading your cluster, in some circumstances you must restart your
* nodes and reindex your transform indices. In those circumstances,
* there must be no transforms running. You can close the transforms,
* do the upgrade, then open all the transforms again. Alternatively,
* you can use this API to temporarily halt tasks associated with the transforms
* and prevent new transforms from opening. You can also use this API
* during upgrades that do not require you to reindex your transform
* indices, though stopping transforms is not a requirement in that case.
* You can see the current value for the upgrade_mode setting by using the get
* transform info API.
* @rest_spec_name transform.set_upgrade_mode
* @availability stack since=8.18.0 stability=stable
* @availability serverless stability=stable visibility=private
* @cluster_privileges manage_transform
* @doc_id transform-set-upgrade-mode
*/
export interface Request extends RequestBase {
urls: [
{
path: '/_transform/set_upgrade_mode'
methods: ['POST']
}
]
query_parameters: {
/**
* When `true`, it enables `upgrade_mode` which temporarily halts all
* transform tasks and prohibits new transform tasks from
* starting.
* @server_default false
*/
enabled?: boolean
/**
* The time to wait for the request to be completed.
* @server_default 30s
*/
timeout?: Duration
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { AcknowledgedResponseBase } from '@_types/Base'

export class Response {
/** @codegen_name result */
body: AcknowledgedResponseBase
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
method_request: POST _transform/set_upgrade_mode?enabled=true