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

Use execute instead of submit so unhandled exceptions get logged #1379

Merged
merged 2 commits into from
May 1, 2019

Conversation

ajsutton
Copy link
Contributor

@ajsutton ajsutton commented May 1, 2019

PR description

ExecutorService.submit returns a Future which is completed exceptionally when there are unhandled exceptions. In cases where we ignore the returned future those exceptions are silently ignored.

Instead use execute which doesn't return a future and will pass unhandled exceptions to the usual handler that prints them out.

Copy link
Contributor

@rain-on rain-on left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ajsutton ajsutton merged commit 7bfa8c6 into PegaSysEng:master May 1, 2019
@ajsutton ajsutton deleted the log-exceptions-in-ibft branch May 1, 2019 05:56
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.

2 participants