Retry HTTP failures, and log less stack traces.
@@ -25,6 +25,7 @@ import com.yahoo.vespa.hosted.controller.api.integration.zone.ZoneId;
import com.yahoo.vespa.hosted.controller.application.ApplicationPackage;
import com.yahoo.vespa.hosted.controller.application.ApplicationVersion;
import com.yahoo.vespa.hosted.controller.application.DeploymentJobs;
+import com.yahoo.yolean.Exceptions;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@@ -108,8 +109,12 @@ public class InternalStepRunner implements StepRunner {
default: throw new AssertionError("Unknown step '" + step + "'!");
}
}
+ catch (UncheckedIOException e) {
+ logger.log(INFO, "IO exception running " + id + ": " + Exceptions.toMessageString(e));
+ return Optional.empty();
+ }
catch (RuntimeException e) {
- logger.log(INFO, "Unexpected exception running " + id, e);
+ logger.log(INFO, "Unexpected exception running " + id + ": " + Exceptions.toMessageString(e));
if (JobProfile.of(id.type()).alwaysRun().contains(step.get())) {
logger.log("Will keep trying, as this is a cleanup step.");
return Optional.empty();
