Skip to content

[ML] Reject data frame analytics using runtime fields if not all node… #69331

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

Conversation

dimitris-athanasiou
Copy link
Contributor

…s support it

When a data frame anylytics job config contains runtime mappings, when the task
starts the destination index will be created with a runtime section in its mappings.
If the cluster contains nodes that are on a version prior to the addition of runtime
fields, the index creation will fail. Thus, this commit adds a check to prevent such
jobs from being created and it informs the user on the preconditions for using
runtime fields in data frame analytics.

…s support it

When a data frame anylytics job config contains runtime mappings, when the task
starts the destination index will be created with a `runtime` section in its mappings.
If the cluster contains nodes that are on a version prior to the addition of runtime
fields, the index creation will fail. Thus, this commit adds a check to prevent such
jobs from being created and it informs the user on the preconditions for using
runtime fields in data frame analytics.
@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Feb 22, 2021
@elasticmachine
Copy link
Collaborator

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

Copy link
Contributor

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

LGTM

@dimitris-athanasiou dimitris-athanasiou merged commit 5ed27a7 into elastic:7.x Feb 22, 2021
@dimitris-athanasiou dimitris-athanasiou deleted the reject-dfa-jobs-that-use-runtime-fields-if-cluster-lacks-support branch February 22, 2021 12:21
dimitris-athanasiou added a commit that referenced this pull request Feb 25, 2021
)

As we make use of the field caps API `runtime_mappings` feature
we should prevent data frame analytics jobs from being created in
a cluster that contains nodes prior to 7.12.

Relates #69331
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml Machine learning >non-issue Team:ML Meta label for the ML team v7.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants