diff --git a/core/src/main/java/org/elasticsearch/common/http/client/HttpDownloadHelper.java b/core/src/main/java/org/elasticsearch/common/http/client/HttpDownloadHelper.java index b77ddb8183e..96dad7ec642 100644 --- a/core/src/main/java/org/elasticsearch/common/http/client/HttpDownloadHelper.java +++ b/core/src/main/java/org/elasticsearch/common/http/client/HttpDownloadHelper.java @@ -34,6 +34,7 @@ import java.net.HttpURLConnection; import java.net.URL; import java.net.URLConnection; import java.nio.file.Files; +import java.nio.file.NoSuchFileException; import java.nio.file.Path; import java.nio.file.attribute.FileTime; import java.util.Arrays; @@ -148,7 +149,7 @@ public class HttpDownloadHelper { } return true; } - } catch (FileNotFoundException e) { + } catch (FileNotFoundException | NoSuchFileException e) { // checksum file doesn't exist return false; } catch (IOException e) {