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] Fixes inference timeout check in File Upload #204722

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Dec 18, 2024

Fixes issue in serverless where the inference call to deploy elser times out, which is expected, but returns with an unexpected 500 error code.
This causes the UI to stop the upload process.
image

This PR increases the timeout length to 10mins and allows for 500 errors just in case.
Testing this shows that with the extra timeout time in kibana, another timeout happens at 1min but this returns with an expected 408. Therefore allowing for 500s might not be needed, but I don't think there is any harm.

@jgowdyelastic jgowdyelastic added the ci:project-deploy-elasticsearch Create an Elasticsearch Serverless project label Dec 18, 2024
@kibanamachine
Copy link
Contributor

PR Project deployment started at: https://buildkite.com/elastic/kibana-deploy-project-from-pr/builds/211

@kibanamachine
Copy link
Contributor

Project deployed, see credentials at: https://buildkite.com/elastic/kibana-deploy-project-from-pr/builds/211

@kibanamachine
Copy link
Contributor

PR Project deployment started at: https://buildkite.com/elastic/kibana-deploy-project-from-pr/builds/212

@kibanamachine
Copy link
Contributor

Project deployed, see credentials at: https://buildkite.com/elastic/kibana-deploy-project-from-pr/builds/212

@kibanamachine
Copy link
Contributor

PR Project deployment started at: https://buildkite.com/elastic/kibana-deploy-project-from-pr/builds/213

@kibanamachine
Copy link
Contributor

Project deployed, see credentials at: https://buildkite.com/elastic/kibana-deploy-project-from-pr/builds/213

@jgowdyelastic jgowdyelastic self-assigned this Dec 18, 2024
@jgowdyelastic jgowdyelastic added :ml Feature:File and Index Data Viz ML file and index data visualizer Feature:File Upload v9.0.0 v8.18.0 release_note:fix backport:version Backport to applied version labels and removed ci:project-deploy-elasticsearch Create an Elasticsearch Serverless project labels Dec 18, 2024
@jgowdyelastic jgowdyelastic marked this pull request as ready for review December 18, 2024 14:45
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner December 18, 2024 14:46
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes LGTM

@jgowdyelastic jgowdyelastic enabled auto-merge (squash) December 24, 2024 19:20
@jgowdyelastic jgowdyelastic merged commit 155bdd0 into elastic:main Dec 24, 2024
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12485900908

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
dataVisualizer 614.9KB 614.9KB +9.0B

History

cc @jgowdyelastic

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 24, 2024
Fixes issue in serverless where the inference call to deploy elser times
out, which is expected, but returns with an unexpected `500` error code.
This causes the UI to stop the upload process.

![image](https://github.com/user-attachments/assets/57b3007f-5a67-4c99-b6bd-360c7b5b788f)

This PR increases the timeout length to 10mins and allows for `500`
errors just in case.
Testing this shows that with the extra timeout time in kibana, another
timeout happens at 1min but this returns with an expected `408`.
Therefore allowing for `500`s might not be needed, but I don't think
there is any harm.

(cherry picked from commit 155bdd0)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Dec 24, 2024
)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ML] File upload fixing inference timeout check
(#204722)](#204722)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"James
Gowdy","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-24T20:23:14Z","message":"[ML]
File upload fixing inference timeout check (#204722)\n\nFixes issue in
serverless where the inference call to deploy elser times\r\nout, which
is expected, but returns with an unexpected `500` error code.\r\nThis
causes the UI to stop the upload
process.\r\n\r\n![image](https://github.com/user-attachments/assets/57b3007f-5a67-4c99-b6bd-360c7b5b788f)\r\n\r\n\r\nThis
PR increases the timeout length to 10mins and allows for `500`\r\nerrors
just in case.\r\nTesting this shows that with the extra timeout time in
kibana, another\r\ntimeout happens at 1min but this returns with an
expected `408`.\r\nTherefore allowing for `500`s might not be needed,
but I don't think\r\nthere is any
harm.","sha":"155bdd02af3418d4b5d2228ea034d12c9146f934","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:File
and Index Data Viz","Feature:File
Upload","v9.0.0","backport:version","v8.18.0"],"title":"[ML] File upload
fixing inference timeout
check","number":204722,"url":"https://github.com/elastic/kibana/pull/204722","mergeCommit":{"message":"[ML]
File upload fixing inference timeout check (#204722)\n\nFixes issue in
serverless where the inference call to deploy elser times\r\nout, which
is expected, but returns with an unexpected `500` error code.\r\nThis
causes the UI to stop the upload
process.\r\n\r\n![image](https://github.com/user-attachments/assets/57b3007f-5a67-4c99-b6bd-360c7b5b788f)\r\n\r\n\r\nThis
PR increases the timeout length to 10mins and allows for `500`\r\nerrors
just in case.\r\nTesting this shows that with the extra timeout time in
kibana, another\r\ntimeout happens at 1min but this returns with an
expected `408`.\r\nTherefore allowing for `500`s might not be needed,
but I don't think\r\nthere is any
harm.","sha":"155bdd02af3418d4b5d2228ea034d12c9146f934"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204722","number":204722,"mergeCommit":{"message":"[ML]
File upload fixing inference timeout check (#204722)\n\nFixes issue in
serverless where the inference call to deploy elser times\r\nout, which
is expected, but returns with an unexpected `500` error code.\r\nThis
causes the UI to stop the upload
process.\r\n\r\n![image](https://github.com/user-attachments/assets/57b3007f-5a67-4c99-b6bd-360c7b5b788f)\r\n\r\n\r\nThis
PR increases the timeout length to 10mins and allows for `500`\r\nerrors
just in case.\r\nTesting this shows that with the extra timeout time in
kibana, another\r\ntimeout happens at 1min but this returns with an
expected `408`.\r\nTherefore allowing for `500`s might not be needed,
but I don't think\r\nthere is any
harm.","sha":"155bdd02af3418d4b5d2228ea034d12c9146f934"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: James Gowdy <[email protected]>
stratoula pushed a commit to stratoula/kibana that referenced this pull request Jan 2, 2025
Fixes issue in serverless where the inference call to deploy elser times
out, which is expected, but returns with an unexpected `500` error code.
This causes the UI to stop the upload process.

![image](https://github.com/user-attachments/assets/57b3007f-5a67-4c99-b6bd-360c7b5b788f)


This PR increases the timeout length to 10mins and allows for `500`
errors just in case.
Testing this shows that with the extra timeout time in kibana, another
timeout happens at 1min but this returns with an expected `408`.
Therefore allowing for `500`s might not be needed, but I don't think
there is any harm.
benakansara pushed a commit to benakansara/kibana that referenced this pull request Jan 2, 2025
Fixes issue in serverless where the inference call to deploy elser times
out, which is expected, but returns with an unexpected `500` error code.
This causes the UI to stop the upload process.

![image](https://github.com/user-attachments/assets/57b3007f-5a67-4c99-b6bd-360c7b5b788f)


This PR increases the timeout length to 10mins and allows for `500`
errors just in case.
Testing this shows that with the extra timeout time in kibana, another
timeout happens at 1min but this returns with an expected `408`.
Therefore allowing for `500`s might not be needed, but I don't think
there is any harm.
@peteharverson peteharverson changed the title [ML] File upload fixing inference timeout check [ML] Fixes inference timeout check in File Upload Jan 3, 2025
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.

5 participants