No point rethrowing exception in thread pool task
It will just get logged twice, but with a less useful message the second time Original commit: elastic/x-pack-elasticsearch@7d32f65cc1
This commit is contained in:
parent
081bebbbcd
commit
f65125df55
|
@ -148,13 +148,12 @@ public class ShortCircuitingRenormalizer implements Renormalizer {
|
|||
// Loop if more work has become available while we were working, because the
|
||||
// tasks originally submitted to do that work will have exited early.
|
||||
} while (tryFinishWork() == false);
|
||||
} catch (RuntimeException e) {
|
||||
} catch (Exception e) {
|
||||
LOGGER.error("[" + jobId + "] Normalization failed", e);
|
||||
if (latch != null) {
|
||||
latch.countDown();
|
||||
}
|
||||
forceFinishWork();
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue