There's no point in catching an exception and just rethrowing it
@@ -105,7 +105,7 @@ class DockerLivenessContainer extends DockerLogsContainer {
long totalMillis = pollTimes * livenessProbe.pollInterval
long totalMinutes = TimeUnit.MILLISECONDS.toMinutes(totalMillis)
progressLogger.progress("Probing for ${totalMinutes}m...")
- try {
+
// zero'ing out the below so as to save on memory for potentially
// big logs returned from container.
logLine = null
@@ -113,9 +113,6 @@ class DockerLivenessContainer extends DockerLogsContainer {
localPollTime -= livenessProbe.pollInterval
sleep(livenessProbe.pollInterval)
- } catch (Exception e) {
- throw e
- }
}
}
} finally {
