Catch only specific exceptions

Fixes #10250
This commit is contained in:
Dan Hermann 2019-01-04 05:48:41 -06:00
parent 9288515b2b
commit 5701c84b21

View file

@ -88,7 +88,7 @@ public class FileCheckpointIO implements CheckpointIO {
logger.error("Retrying after exception writing checkpoint: " + ex);
Thread.sleep(500);
Files.move(tmpPath, dirPath.resolve(fileName), StandardCopyOption.ATOMIC_MOVE);
} catch (Exception ex2) {
} catch (IOException | InterruptedException ex2) {
logger.error("Aborting after second exception writing checkpoint: " + ex2);
throw ex;
}