Skip to content

Preserve parent task id for ml transform#55124

Merged
albertzaharovits merged 6 commits intoelastic:masterfrom
albertzaharovits:parent-task-id-for-ml-transform
Apr 14, 2020
Merged

Preserve parent task id for ml transform#55124
albertzaharovits merged 6 commits intoelastic:masterfrom
albertzaharovits:parent-task-id-for-ml-transform

Conversation

@albertzaharovits
Copy link
Copy Markdown
Contributor

This change ensures that internal client requests spawned by the transform persistent task executor and that use the end user security credentials, have the parent task id assigned. The objective here is to permit auditing (as well as tracking for debugging purposes) of all the end-user requests executed on its behalf by persistent tasks. Because transform tasks already implements graceful shutdown of child tasks, this change does not interfere with it by opting out of the persistent task cancellation of child tasks.

Relates #55046 #54943 #52314
Closes #54957

@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/ml-core (:ml/Transform)

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

@albertzaharovits albertzaharovits merged commit 9d282cd into elastic:master Apr 14, 2020
@albertzaharovits albertzaharovits deleted the parent-task-id-for-ml-transform branch April 14, 2020 14:12
albertzaharovits added a commit that referenced this pull request Apr 14, 2020
This change ensures that internal client requests spawned by the
transform persistent task executor and that use the end user security
credentials, have the parent task id assigned. The objective here is
to permit auditing (as well as tracking for debugging purposes) of all
the end-user requests executed on its behalf by persistent tasks.
Because transform tasks already implements graceful shutdown of the
child tasks, this change does not interfere with that by opting out of
the persistent task cancellation of child tasks.

Relates #55046 #54943 #52314
Closes #54957
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Transform] transform tasks should preserve parent task id

4 participants