Merge pull request #13718 from mikemccand/catch_throwable

LoggingRunnable.run should catch and log all errors, not just Exception
This commit is contained in:
Michael McCandless 2015-09-23 04:24:27 -04:00
commit 4fb6386df3

View File

@ -511,8 +511,8 @@ public class ThreadPool extends AbstractComponent {
public void run() { public void run() {
try { try {
runnable.run(); runnable.run();
} catch (Exception e) { } catch (Throwable t) {
logger.warn("failed to run {}", e, runnable.toString()); logger.warn("failed to run {}", t, runnable.toString());
} }
} }