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-DataFrame] GET Transform with a unknown ID does not return a 404 #40003

Closed
davidkyle opened this issue Mar 13, 2019 · 4 comments
Closed

[ML-DataFrame] GET Transform with a unknown ID does not return a 404 #40003

davidkyle opened this issue Mar 13, 2019 · 4 comments
Labels
>bug :ml Machine learning

Comments

@davidkyle
Copy link
Member

GET /_data_frame/transforms/a_transform_that_doesn't_exist

Does not return a 404 instead an empty response is returned. More dubiously the log is filled with many error messages

[2019-03-13T16:23:01,545][ERROR][o.e.t.TransportService   ] [node-0] failed to handle exception for action [indices:data/read/get[s]], handler [org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler/org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction$2@72a4f821]
java.lang.RuntimeException: Failed to load data frame transform configuration for transform [test-get]
[2019-03-13T16:23:01,545][WARN ][o.e.x.c.s.SchedulerEngine] [node-0] listener failed while handling triggered event [data_frame/transforms/schedule_test-get]
java.lang.NullPointerException: null
        at org.elasticsearch.xpack.dataframe.transforms.DataFrameTransformTask$ClientDataFrameIndexer.maybeTriggerAsyncJob(DataFrameTransformTask.java:272) ~[?:?]
        at org.elasticsearch.xpack.dataframe.transforms.DataFrameTransformTask.triggered(DataFrameTransformTask.java:189) ~[?:?]
Caused by: java.lang.RuntimeException: Failed to load data frame transform configuration for transform [test-get]

And finally after thousands of lines the cause

Caused by: org.elasticsearch.ResourceNotFoundException: Transform with id [test-get] could not be found
        at org.elasticsearch.xpack.dataframe.persistence.DataFrameTransformsConfigManager.lambda$getTransformConfiguration$3(DataFrameTransformsConfigManager.java:106) ~[?:?]
@davidkyle davidkyle added >bug :ml Machine learning labels Mar 13, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

@hendrikmuhs
Copy link

This looks like 2 issues:

  • non-404: sounds like a regression to me, which is strange as it's covered by a test, I need to check your circumstances
  • failure spam: known issue about failure handling

@davidkyle
Copy link
Member Author

Closing this issue as it was fixed in #39934

@davidkyle
Copy link
Member Author

@hendrikmuhs Ignore this sorry I was working on a old commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :ml Machine learning
Projects
None yet
Development

No branches or pull requests

3 participants