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

[8.16] Avoid catch (Throwable t) in AmazonBedrockStreamingChatProcessor (#115715) #115789

Merged

Conversation

DaveCTurner
Copy link
Contributor

Backports the following commits to 8.16:

…lastic#115715)

`CompletableFuture.runAsync` implicitly catches all `Throwable`
instances thrown by the task, which includes `Error` instances that no
reasonable application should catch. Moreover, discarding the return
value from these methods means that any such `Error` will be ignored,
allowing the JVM to carry on running in an invalid state.

This commit replaces these trappy calls with more appropriate exception
handling.
@DaveCTurner DaveCTurner added :ml Machine learning >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:ML Meta label for the ML team labels Oct 28, 2024
@elasticsearchmachine elasticsearchmachine merged commit c3e114a into elastic:8.16 Oct 28, 2024
15 checks passed
@DaveCTurner DaveCTurner deleted the backport/8.16/pr-115715 branch October 28, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :ml Machine learning Team:ML Meta label for the ML team v8.16.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants