Skip to content

Commit

Permalink
Fix ReactiveStorageIT#testScaleWhileShrinking (#91681) (#91689)
Browse files Browse the repository at this point in the history
  • Loading branch information
idegtiarenko committed Nov 18, 2022
1 parent db493d0 commit 5412ff4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ private static long getTotalFileSize(Path path) throws IOException {
}
return total;
} catch (IOException | DirectoryIteratorException e) {
if (isFileNotFoundException(e) == false) {
throw e;
if (isFileNotFoundException(e) || e instanceof AccessDeniedException) {
// probably removed (Windows sometimes throws AccessDeniedException after a file has been deleted)
return 0L;
}
// probably removed
return 0L;
throw e;
}
}
}
Expand Down

0 comments on commit 5412ff4

Please sign in to comment.