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

Handle errors on reload with the default uncaught exception handler #714

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

afn
Copy link
Contributor

@afn afn commented Oct 11, 2018

This code (added in #711) was throwing a RuntimeException, which I mistakenly believed would invoke the default uncaught exception handler. Instead, ThreadPoolExecutor swallows the RuntimeException and terminates the executor.

Calling the default uncaught exception handler will currently just log the exception to stderr. Once #709 is merged, it will trigger our global uncaught exception handler, which logs the error and shuts down jmxtrans.

This code (added in jmxtrans#711) was throwing a RuntimeException, which I
mistakenly believed would invoke the default uncaught exception handler.
Instead, ThreadPoolExecutor swallows the RuntimeException and terminates
the executor.

Calling the default uncaught exception handler will currently just log
the exception to stderr. Once jmxtrans#709 is merged, it will trigger our global
uncaught exception handler, which logs the error and shuts down
jmxtrans.
@afn afn force-pushed the handle-delayed-reload-errors branch from c11354d to 84f878b Compare November 1, 2018 19:20
@afn
Copy link
Contributor Author

afn commented Nov 1, 2018

Rebased.

@gquintana
Copy link
Member

Why a separate PR from #709 ?

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.

None yet

2 participants