Exception should not be throw if segments not found for getAndReserveWalFiles.
Stopped iteration if next segment not found. Additional fix. - Fixes
@@ -453,8 +453,10 @@ public class FileWriteAheadLogManager extends GridCacheSharedManagerAdapter impl
File file = new File(walArchiveDir, segmentName);
File fileZip = new File(walArchiveDir, segmentName + ".zip");
- if (file.exists() || fileZip.exists())
+ if (file.exists())
res.add(file);
+ else if (fileZip.exists())
+ res.add(fileZip);
else {
if (log.isInfoEnabled()) {
log.info("Segment not found: " + file.getName() + "/" + fileZip.getName());
