Skip to content

[ML] Return 408 when open/start APIs time out#89775

Merged
dimitris-athanasiou merged 5 commits intoelastic:mainfrom
dimitris-athanasiou:return-408-when-start-apis-timeout
Sep 1, 2022
Merged

[ML] Return 408 when open/start APIs time out#89775
dimitris-athanasiou merged 5 commits intoelastic:mainfrom
dimitris-athanasiou:return-408-when-start-apis-timeout

Conversation

@dimitris-athanasiou
Copy link
Copy Markdown
Contributor

This changes the response status code from 500 to 408 when
the following ML APIs time out:

  • open anomaly detection job
  • start datafeed
  • start data frame analytics

Closes #89585

This changes the response status code from `500` to `408` when
the following ML APIs time out:

- open anomaly detection job
- start datafeed
- start data frame analytics

Closes elastic#89585
@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Sep 1, 2022
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @dimitris-athanasiou, I've created a changelog YAML for you.

Copy link
Copy Markdown

@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 except I think we should release note this as a bug fix

Co-authored-by: David Roberts <dave.roberts@elastic.co>
@dimitris-athanasiou
Copy link
Copy Markdown
Contributor Author

run elasticsearch-ci/part-3

@dimitris-athanasiou dimitris-athanasiou merged commit 4bbe4ea into elastic:main Sep 1, 2022
@dimitris-athanasiou dimitris-athanasiou deleted the return-408-when-start-apis-timeout branch September 1, 2022 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :ml Machine learning Team:ML Meta label for the ML team v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ML] Return 408 instead of 500 when open/start requests time out

3 participants