Skip to content

[Transform] Make transform _preview request cancellable#91313

Merged
przemekwitek merged 4 commits intoelastic:mainfrom
przemekwitek:transform_cancellable_preview
Nov 8, 2022
Merged

[Transform] Make transform _preview request cancellable#91313
przemekwitek merged 4 commits intoelastic:mainfrom
przemekwitek:transform_cancellable_preview

Conversation

@przemekwitek
Copy link
Copy Markdown

@przemekwitek przemekwitek commented Nov 4, 2022

This PR improves the way _preview request is handled in Transform API:

  • makes the _preview call cancellable by passing parent task id around
  • makes the _preview time-bounded by passing timeout parameter around

Closes #91286

@przemekwitek przemekwitek force-pushed the transform_cancellable_preview branch from a715548 to 0940a6b Compare November 4, 2022 14:55
@przemekwitek przemekwitek removed the WIP label Nov 4, 2022
@przemekwitek przemekwitek marked this pull request as ready for review November 4, 2022 14:58
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Nov 4, 2022
@przemekwitek przemekwitek added >bug :ml/Transform Transform v7.17.0 and removed needs:triage Requires assignment of a team area label labels Nov 4, 2022
@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Nov 4, 2022
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/ml-core (Team:ML)

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @przemekwitek, I've created a changelog YAML for you.

@przemekwitek przemekwitek force-pushed the transform_cancellable_preview branch from a1f5504 to e9c4fb5 Compare November 4, 2022 18:42
Copy link
Copy Markdown

@hendrikmuhs hendrikmuhs left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @przemekwitek, I've created a changelog YAML for you.

Copy link
Copy Markdown

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

LGTM2

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @przemekwitek, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💔 Backport failed

Status Branch Result
8.5
7.17 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 91313

@przemekwitek
Copy link
Copy Markdown
Author

💚 All backports created successfully

Status Branch Result
7.17

Questions ?

Please refer to the Backport tool documentation

przemekwitek pushed a commit to przemekwitek/elasticsearch that referenced this pull request Nov 8, 2022
)

(cherry picked from commit a8a684e)

# Conflicts:
#	x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/transform/preview_transforms.yml
#	x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/action/TransportPreviewTransformAction.java
#	x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/rest/action/RestPreviewTransformAction.java
#	x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/Function.java
#	x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/common/AbstractCompositeAggFunction.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Transform] Make preview calls cancellable and respect timeout

4 participants