Skip to content

Commit d95537e

Browse files
kofemannkhys95
authored andcommitted
pool: log at warn when files state in pool change
Motivation: to trace why files change tier states from PRECIOUS to CACHED all log entry. Modification: Log and warn when file changes it state in a pool Result: better observability Acked-by: Karen Hoyos Target: master, 11.1, 11.0, 10.2 Require-book: no Require-notes: yes (cherry picked from commit f3aab0d) Signed-off-by: Tigran Mkrtchyan <[email protected]>
1 parent cd459f9 commit d95537e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/dcache/src/main/java/org/dcache/pool/repository/v5/ReplicaRepository.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,7 @@ public void setState(PnfsId id, ReplicaState state, String why)
897897
case CACHED:
898898
case PRECIOUS:
899899
case BROKEN:
900+
LOGGER.warn("Changing state of {} from {} to {}: {}", id, source, state, why);
900901
return r.setState(state);
901902
default:
902903
break;

0 commit comments

Comments
 (0)