diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java index 6849b176f72..a50e5b46455 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java @@ -1045,13 +1045,19 @@ public class BucketCache implements BlockCache, HeapSize { final HFileContext fileContext = ((HFileBlock) re.getData()).getHFileContext(); final String columnFamily = Bytes.toString(fileContext.getColumnFamily()); final String tableName = Bytes.toString(fileContext.getTableName()); - if (tableName != null && columnFamily != null) { + if (tableName != null) { sb.append(" Table: "); sb.append(tableName); + } + if (columnFamily != null) { sb.append(" CF: "); sb.append(columnFamily); - sb.append(" HFile: "); + } + sb.append(" HFile: "); + if (fileContext.getHFileName() != null) { sb.append(fileContext.getHFileName()); + } else { + sb.append(re.getKey()); } } else { sb.append(" HFile: ");