-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow to start a transform if validation fails and let it start worki…
…ng (#89759) allow to start a transform if validation fails and let it start working once validation passes relates #89212
- Loading branch information
Hendrik Muhs
authored
Sep 13, 2022
1 parent
eaf188b
commit 1cc5b9e
Showing
12 changed files
with
244 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
.../plugin/src/yamlRestTest/resources/rest-api-spec/test/transform/transforms_unattended.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
setup: | ||
- do: | ||
cluster.put_settings: | ||
body: > | ||
{ | ||
"persistent": { | ||
"logger.org.elasticsearch.xpack.transform.action": "DEBUG" | ||
} | ||
} | ||
--- | ||
teardown: | ||
- do: | ||
transform.stop_transform: | ||
wait_for_checkpoint: false | ||
transform_id: "transform-unattended" | ||
timeout: "10m" | ||
wait_for_completion: true | ||
- do: | ||
transform.delete_transform: | ||
transform_id: "transform-unattended" | ||
- do: | ||
cluster.put_settings: | ||
body: > | ||
{ | ||
"persistent": { | ||
"logger.org.elasticsearch.xpack.transform.action": "INFO" | ||
} | ||
} | ||
--- | ||
"Test unattended put and start": | ||
- do: | ||
transform.put_transform: | ||
transform_id: "transform-unattended" | ||
defer_validation: true | ||
body: > | ||
{ | ||
"source": { "index": "airline-data" }, | ||
"dest": { "index": "dest-airline-data-by-airline-start-stop" }, | ||
"pivot": { | ||
"group_by": { "airline": {"terms": {"field": "airline"}}}, | ||
"aggs": {"avg_response": {"avg": {"field": "responsetime"}}} | ||
}, | ||
"settings": { | ||
"unattended": true | ||
} | ||
} | ||
- do: | ||
transform.start_transform: | ||
transform_id: "transform-unattended" | ||
|
||
|
||
--- | ||
"Test unattended put and start wildcard": | ||
- do: | ||
transform.put_transform: | ||
transform_id: "transform-unattended" | ||
body: > | ||
{ | ||
"source": { "index": "airline-data*" }, | ||
"dest": { "index": "dest-airline-data-by-airline-start-stop" }, | ||
"pivot": { | ||
"group_by": { "airline": {"terms": {"field": "airline"}}}, | ||
"aggs": {"avg_response": {"avg": {"field": "responsetime"}}} | ||
}, | ||
"settings": { | ||
"unattended": true | ||
} | ||
} | ||
- do: | ||
transform.start_transform: | ||
transform_id: "transform-unattended" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.