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 <andrew@parmet.com>

* license headers

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* changelog

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* tolerate null causes

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* fix tests

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* remove print

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* one more license header

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* fix last non-aws test

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* use multicatch to restrict caught exceptions

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* Replicate the RestClient exception wrapping for async invocation flow

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

* replicate hc5 exception extraction strategy in aws transport

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* move other tests

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* lint

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* delete aws test for now; add support for OpenSearchClientException

Signed-off-by: Andrew Parmet <andrew@parmet.com>

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

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* java 8

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* replicate ISE

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* poke

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* handle some netty-specific channel exceptions

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* poke

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* nevermind netty

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* io before rt

Signed-off-by: Andrew Parmet <andrew@parmet.com>

* no hc5

Signed-off-by: Andrew Parmet <andrew@parmet.com>

---------

Signed-off-by: Andrew Parmet <andrew@parmet.com>
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
Co-authored-by: Andriy Redko <andriy.redko@aiven.io>
(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