Navigation Menu

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

Java API: ActionFuture#actionGet to automatically unwrap failures #1292

Closed
kimchy opened this issue Aug 31, 2011 · 0 comments
Closed

Java API: ActionFuture#actionGet to automatically unwrap failures #1292

kimchy opened this issue Aug 31, 2011 · 0 comments

Comments

@kimchy
Copy link
Member

kimchy commented Aug 31, 2011

Currently, using ActionFuture#actionGet will cause an ElasticSearchException to be thrown, but, it can be wrapped, for example, with a RemoteTransportException. The wrapping can be important, as it provides a "trace" to the origin of the failure.

We can automatically unwrap to the actual failure when throwing a failure from actionGet, and add to ActionFuture a helper method called getRootFailure which provides the actual (possibly wrapped) exception.

@kimchy kimchy closed this as completed in b185078 Aug 31, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant