From c071918cde0621cf8074fdaa1fc9ebb4104cfd58 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Mon, 27 Nov 2023 20:55:34 -0800 Subject: [PATCH] Added log statement --- .../org/apache/hadoop/ozone/om/snapshot/SnapshotCache.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotCache.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotCache.java index 4429532ea2a..1a0313a16cd 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotCache.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotCache.java @@ -108,6 +108,9 @@ public void invalidate(String key) throws IOException { boolean rm = pendingEvictionList.remove(v); if (rm) { throw new IllegalStateException("Failed to remove entry from PEL"); + } else { + LOG.info("HEKU: Removed entry for key: {} successfully. " + + "pendingEvictionList size: {}", k, pendingEvictionList.size()); } try { ((OmSnapshot) v.get()).close();