Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Errors from predicates are silently ignored #7

Closed
wants to merge 1 commit into from

Conversation

chaptastic
Copy link
Contributor

I ran into an issue with a predicate that was throwing an NPE causing the future to never complete or be retried. This patch catches any errors thrown while testing a caught Throwable and logs them then completes the future with the original Throwable.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.57%) to 91.24% when pulling 9724cbc on chaptastic:predicate-throws into 47d9f67 on nurkiewicz:master.

@nurkiewicz
Copy link
Owner

Merged (with formatting changes) in 47af5d8, thank you!

For a moment I was wondering whether the predicate exception shouldn't be the one that terminates future, I believe your version (just logging) is much better.

@nurkiewicz nurkiewicz closed this May 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants