Skip to content

Commit 65c87f6

Browse files
committed
pool: log with error if checksum scanner gets an IO error
Ticket: #8181 Acked-by: Karsten Schwank Target: master, 2.9, 2.8, 2.7, 2.6 Require-book: no Require-notes: no (cherry picked from commit 5026cf9) Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
1 parent 18af008 commit 65c87f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/dcache/src/main/java/org/dcache/pool/classic/ChecksumScanner.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ public void runIt() throws Exception
124124
} catch (CacheException e) {
125125
_log.warn("Checksum scanner failed for {}: {}", id, e.getMessage());
126126
_badCount++;
127+
} catch (IOException e) {
128+
_log.error("Checksum scanner failed with IO error for {}: {}", id, e.getMessage());
129+
_badCount++;
127130
}
128131
_totalCount++;
129132
}
@@ -437,6 +440,7 @@ private void scanFiles(PnfsId[] repository)
437440
} catch (IOException e) {
438441
_log.error("Failed to verify the checksum of {} (skipping): {}",
439442
id, e.getMessage());
443+
_badCount++;
440444
}
441445
_lastFileChecked = id;
442446
_totalCount++;

0 commit comments

Comments
 (0)