inputExhausted = true;
break;
} catch (IOException e) {
if (workerCalls == 0) {
// No progress, lets retry the slice
throw new RecoverableException("Failed on first input", e);
}
// We made progress, persist it.
log.log(Level.WARNING, "An IOException while reading input, ending slice early", e);
break;
}