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

[Backport 2.x] Recreate or wrap exceptions thrown by async transport implementations to preserve caller stack traces #1006

Merged
merged 1 commit into from
May 30, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport db50b7d from #656.

… to preserve caller stack traces (#656)

* wrap exceptions thrown by async transport implementations in IOException

Signed-off-by: Andrew Parmet <[email protected]>

* license headers

Signed-off-by: Andrew Parmet <[email protected]>

* changelog

Signed-off-by: Andrew Parmet <[email protected]>

* tolerate null causes

Signed-off-by: Andrew Parmet <[email protected]>

* fix tests

Signed-off-by: Andrew Parmet <[email protected]>

* remove print

Signed-off-by: Andrew Parmet <[email protected]>

* one more license header

Signed-off-by: Andrew Parmet <[email protected]>

* fix last non-aws test

Signed-off-by: Andrew Parmet <[email protected]>

* use multicatch to restrict caught exceptions

Signed-off-by: Andrew Parmet <[email protected]>

* Replicate the RestClient exception wrapping for async invocation flow

Signed-off-by: Andriy Redko <[email protected]>

* replicate hc5 exception extraction strategy in aws transport

Signed-off-by: Andrew Parmet <[email protected]>

* move other tests

Signed-off-by: Andrew Parmet <[email protected]>

* lint

Signed-off-by: Andrew Parmet <[email protected]>

* delete aws test for now; add support for OpenSearchClientException

Signed-off-by: Andrew Parmet <[email protected]>

* reintroduce an aws test, sadly, not extending the abstract case

Signed-off-by: Andrew Parmet <[email protected]>

* java 8

Signed-off-by: Andrew Parmet <[email protected]>

* replicate ISE

Signed-off-by: Andrew Parmet <[email protected]>

* poke

Signed-off-by: Andrew Parmet <[email protected]>

* handle some netty-specific channel exceptions

Signed-off-by: Andrew Parmet <[email protected]>

* poke

Signed-off-by: Andrew Parmet <[email protected]>

* nevermind netty

Signed-off-by: Andrew Parmet <[email protected]>

* io before rt

Signed-off-by: Andrew Parmet <[email protected]>

* no hc5

Signed-off-by: Andrew Parmet <[email protected]>

---------

Signed-off-by: Andrew Parmet <[email protected]>
Signed-off-by: Andriy Redko <[email protected]>
Co-authored-by: Andriy Redko <[email protected]>
(cherry picked from commit db50b7d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@reta reta merged commit 4f01790 into 2.x May 30, 2024
96 checks passed
@github-actions github-actions bot deleted the backport/backport-656-to-2.x branch May 30, 2024 15:24
@BrendonFaleiro BrendonFaleiro mentioned this pull request Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant