Skip to content

Conversation

@rjernst
Copy link
Member

@rjernst rjernst commented Nov 20, 2023

Painless sandboxes some errors from Java for which it can recover. These errors are wrapped within a ScriptException. However, retaining the error as a cause can be confusing when walking the error chain. This commit wraps the error so that the real error type does not appear, but maintains the same error message in xcontent serialized form.

closes #101881

Painless sandboxes some errors from Java for which it can recover. These
errors are wrapped within a ScriptException. However, retaining the
error as a cause can be confusing when walking the error chain. This
commit wraps the error so that the real error type does not appear,
but maintains the same error message in xcontent serialized form.
@rjernst rjernst added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Nov 20, 2023
@elasticsearchmachine elasticsearchmachine merged commit cd08b1e into elastic:7.17 Nov 20, 2023
@rjernst rjernst deleted the scripting/exception_wrapping_7.17 branch November 20, 2023 23:35
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 v7.17.16

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants