Fix TraceableExecutorService (#1437)

TraceableExecutorService swallows Exception because `execute` submits a Runnable and ignores the Future's result. It should call the delegates `execute` method instead of the `submit`.
This commit is contained in:
Jan van den Berg
2019-09-05 11:05:48 +02:00
committed by Marcin Grzejszczak
parent dc4165ffe3
commit e2e1cdb336

View File

@@ -63,7 +63,7 @@ public class TraceableExecutorService implements ExecutorService {
@Override
public void execute(Runnable command) {
this.delegate.submit(ContextUtil.isContextInCreation(this.beanFactory) ? command
this.delegate.execute(ContextUtil.isContextInCreation(this.beanFactory) ? command
: new TraceRunnable(tracing(), spanNamer(), command, this.spanName));
}