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:
David Roberts 2016-12-19 16:24:45 +00:00
parent 081bebbbcd
commit f65125df55
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}
}