From 17fe33dedfc105ad811cd08ac3dd372ac4acd136 Mon Sep 17 00:00:00 2001 From: Marcel May Date: Mon, 24 May 2021 19:41:53 +0200 Subject: [PATCH] Log INodes cache size on debug level --- .../main/java/de/m3y/hadoop/hdfs/hfsa/core/FsImageLoader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/main/java/de/m3y/hadoop/hdfs/hfsa/core/FsImageLoader.java b/lib/src/main/java/de/m3y/hadoop/hdfs/hfsa/core/FsImageLoader.java index 14df742..ea53ec9 100644 --- a/lib/src/main/java/de/m3y/hadoop/hdfs/hfsa/core/FsImageLoader.java +++ b/lib/src/main/java/de/m3y/hadoop/hdfs/hfsa/core/FsImageLoader.java @@ -150,7 +150,8 @@ protected long[] computeInodesIdxToIdCache(byte[][] buf) { cache[i] = extractNodeId(buf[i]); } if (LOG.isDebugEnabled()) { - LOG.debug("Computed inodes idx to id cache in {}ms", System.currentTimeMillis() - start); + LOG.debug("Computed inodes idx to id cache[len={}] in {}ms", + cache.length, System.currentTimeMillis() - start); } return cache; }