Skip to content

Conversation

przemekwitek
Copy link
Contributor

@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
Collaborator

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

@elasticsearchmachine
Copy link
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

@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
Collaborator

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

Copy link

@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
Collaborator

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

@elasticsearchmachine
Copy link
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
Contributor Author

💚 All backports created successfully

Status Branch Result
7.17

Questions ?

Please refer to the Backport tool documentation

przemekwitek added 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

4 participants