Skip to content
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

[ML] Job list displays error toast if index is missing for data view #120934

Closed
pheyos opened this issue Dec 9, 2021 · 2 comments
Closed

[ML] Job list displays error toast if index is missing for data view #120934

pheyos opened this issue Dec 9, 2021 · 2 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Anomaly Detection ML anomaly detection :ml v7.17.0 v8.1.0

Comments

@pheyos
Copy link
Member

pheyos commented Dec 9, 2021

Found in version

  • 7.16.0

Browser

  • Chrome

Steps to reproduce

  • Create a data view and then remove the corresponding index
  • Navigate to the anomaly detection job list or to the data frame analytics job list

Expected result

  • The job list loads without issues

Actual result

  • An error toast is displayed - sometimes multiple times per data view, which can be very annoying
    image

Additional information

  • This only happens on first load, after that things seem to be cached
  • According to a slack discussion with @jgowdyelastic this might have been fixed in 8.0 already
@pheyos pheyos added bug Fixes for quality problems that affect the customer experience :ml Feature:Anomaly Detection ML anomaly detection labels Dec 9, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@jgowdyelastic
Copy link
Member

jgowdyelastic commented Feb 1, 2022

This error is coming from the data view service, it is caused by how we were loading all data views on page load.
The data view service attempts to load all fields for all requested data views, and if an index no longer exists, this error is displayed.
ML's data view loading was changed for 8.0.0 by this PR

I do not believe we need to fix this for 7.17 as the workaround is to remove the matching data view for the missing index, which is something the user should be doing anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Anomaly Detection ML anomaly detection :ml v7.17.0 v8.1.0
Projects
None yet
Development

No branches or pull requests

4 participants